diff --git a/srcpkgs/python-packaging/template b/srcpkgs/python-packaging/template index e36a04a154..aa1f64182d 100644 --- a/srcpkgs/python-packaging/template +++ b/srcpkgs/python-packaging/template @@ -1,29 +1,19 @@ # Template file for 'python-packaging' pkgname=python-packaging version=20.4 -revision=1 +revision=2 wrksrc="packaging-${version}" -build_style=python-module -pycompile_module="packaging" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-attrs python-parsing python-six" +build_style=python2-module +hostmakedepends="python-setuptools" +depends="python-parsing python-six" short_desc="Core utilities for Python packages (Python2)" maintainer="Alessio Sergi " license="Apache-2.0, BSD-2-Clause" homepage="https://github.com/pypa/packaging" +changelog="https://raw.githubusercontent.com/pypa/packaging/master/CHANGELOG.rst" distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz" checksum=4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8 post_install() { vlicense LICENSE } - -python3-packaging_package() { - pycompile_module="packaging" - depends="python3-attrs python3-parsing python3-six" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python-packaging/update b/srcpkgs/python-packaging/update new file mode 100644 index 0000000000..3b1a41fb94 --- /dev/null +++ b/srcpkgs/python-packaging/update @@ -0,0 +1,3 @@ +# packaging >= 20.5 drops setuptools for flit, which is py3-only; +# prevent update hits on newer versions since they require py3 to build +pattern="packaging-\K20\.4(\.[0-9.]+)?(?=.tar.gz)" diff --git a/srcpkgs/python3-packaging b/srcpkgs/python3-packaging deleted file mode 120000 index 98299fdb1d..0000000000 --- a/srcpkgs/python3-packaging +++ /dev/null @@ -1 +0,0 @@ -python-packaging \ No newline at end of file diff --git a/srcpkgs/python3-packaging/template b/srcpkgs/python3-packaging/template new file mode 100644 index 0000000000..a4323dad4d --- /dev/null +++ b/srcpkgs/python3-packaging/template @@ -0,0 +1,23 @@ +# Template file for 'python3-packaging' +pkgname=python3-packaging +version=20.7 +revision=1 +wrksrc="packaging-${version}" +build_style=python3-pep517 +hostmakedepends="python3-flit_core" +depends="python3-parsing" +checkdepends="python3-pytest" +short_desc="Core utilities for Python packages (Python3)" +maintainer="Andrew J. Hesford " +license="Apache-2.0, BSD-2-Clause" +homepage="https://github.com/pypa/packaging" +distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz" +checksum=05af3bb85d320377db281cf254ab050e1a7ebcbf5410685a9a407e18a1f81236 + +do_check() { + : provides no tests +} + +post_install() { + vlicense LICENSE +}