mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
python-dateutil: rebuild for Python 3.10, update to 2.8.2.
This commit is contained in:
parent
1dcf906e3c
commit
32429a0291
2 changed files with 35 additions and 7 deletions
28
srcpkgs/python-dateutil/patches/setuptools_scm.patch
Normal file
28
srcpkgs/python-dateutil/patches/setuptools_scm.patch
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
Void doesn't package setuptools_scm for Python 2, so remove the dependency.
|
||||||
|
Leave a placeholder for version number that can be substituted at build.
|
||||||
|
|
||||||
|
diff -ur a/setup.cfg b/setup.cfg
|
||||||
|
--- a/setup.cfg
|
||||||
|
+++ b/setup.cfg
|
||||||
|
@@ -35,7 +35,6 @@
|
||||||
|
|
||||||
|
[options]
|
||||||
|
zip_safe = True
|
||||||
|
-setup_requires = setuptools_scm
|
||||||
|
install_requires = six >= 1.5
|
||||||
|
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*
|
||||||
|
packages = find:
|
||||||
|
diff -ur a/setup.py b/setup.py
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -47,9 +47,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
setup(
|
||||||
|
- use_scm_version={
|
||||||
|
- 'write_to': 'dateutil/_version.py',
|
||||||
|
- },
|
||||||
|
+ version=%PKGVERSION%,
|
||||||
|
## Needed since doctest not supported by PyPA.
|
||||||
|
long_description = README,
|
||||||
|
cmdclass={
|
|
@ -1,21 +1,21 @@
|
||||||
# Template file for 'python-dateutil'
|
# Template file for 'python-dateutil'
|
||||||
pkgname=python-dateutil
|
pkgname=python-dateutil
|
||||||
version=2.8.1
|
version=2.8.2
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools_scm"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python-six tzdata"
|
depends="python-six tzdata"
|
||||||
short_desc="Extensions to the standard Python2 datetime module"
|
short_desc="Extensions to the standard Python2 datetime module"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
license="Apache-2.0, BSD-3-Clause"
|
license="Apache-2.0, BSD-3-Clause"
|
||||||
homepage="https://github.com/dateutil/dateutil"
|
homepage="https://github.com/dateutil/dateutil"
|
||||||
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c
|
checksum=0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86
|
||||||
|
|
||||||
pre_build() {
|
post_patch() {
|
||||||
# don't install zoneinfo tarball
|
vsed -i setup.py -e "s/%PKGVERSION%/'${version}'/"
|
||||||
sed -i '/package_data=/d' setup.py
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue