2018-09-05 22:54:39 +02:00
|
|
|
# Template file for 'python-natsort'
|
|
|
|
pkgname=python-natsort
|
2018-09-21 04:23:00 +02:00
|
|
|
version=5.4.1
|
2018-10-18 19:18:39 +02:00
|
|
|
revision=2
|
2018-09-05 22:54:39 +02:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="natsort-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="natsort"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
2018-10-18 19:18:39 +02:00
|
|
|
depends="python-setuptools"
|
|
|
|
checkdepends="python3-pytest-mock python3-hypothesis"
|
|
|
|
short_desc="Simple yet flexible natural sorting in Python2"
|
2018-09-05 22:54:39 +02:00
|
|
|
maintainer="Michal Koutenský <koutak.m@gmail.com>"
|
|
|
|
license="MIT"
|
2018-10-18 19:18:39 +02:00
|
|
|
homepage="https://github.com/SethMMorton/natsort"
|
2018-09-05 22:54:39 +02:00
|
|
|
distfiles="${PYPI_SITE}/n/natsort/natsort-${version}.tar.gz"
|
2018-09-21 04:23:00 +02:00
|
|
|
checksum=ae73b005135dc152e7b282b2d4cf19380d8cab4c4026461ee9f37bf3aa12e344
|
2018-10-18 19:18:39 +02:00
|
|
|
alternatives="natsort:natsort:/usr/bin/natsort2"
|
2018-09-21 04:23:00 +02:00
|
|
|
|
|
|
|
do_check() {
|
|
|
|
python3 -m pytest
|
|
|
|
}
|
2018-09-05 22:54:39 +02:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
python3-natsort_package() {
|
|
|
|
noarch=yes
|
|
|
|
pycompile_module="natsort"
|
2018-10-18 19:18:39 +02:00
|
|
|
depends="python3-setuptools"
|
2018-09-05 22:54:39 +02:00
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
2018-10-18 19:18:39 +02:00
|
|
|
alternatives="natsort:natsort:/usr/bin/natsort3"
|
2018-09-05 22:54:39 +02:00
|
|
|
pkg_install() {
|
2018-10-18 19:18:39 +02:00
|
|
|
vmove usr/bin/*3
|
2018-09-05 22:54:39 +02:00
|
|
|
vmove usr/lib/python3*
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
}
|