mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-pytzdata: use system timezone
This commit is contained in:
parent
d50163956a
commit
ae50d986f1
2 changed files with 24 additions and 2 deletions
|
@ -0,0 +1,18 @@
|
||||||
|
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
|
||||||
|
Description: Using system zoneinfo by default.
|
||||||
|
|
||||||
|
diff -Naurp pytzdata.orig/pytzdata/__init__.py pytzdata/pytzdata/__init__.py
|
||||||
|
--- pytzdata.orig/pytzdata/__init__.py
|
||||||
|
+++ pytzdata/pytzdata/__init__.py
|
||||||
|
@@ -7,10 +7,7 @@ from ._timezones import timezones
|
||||||
|
from ._compat import FileNotFoundError
|
||||||
|
|
||||||
|
|
||||||
|
-DEFAULT_DIRECTORY = os.path.join(
|
||||||
|
- os.path.dirname(__file__),
|
||||||
|
- 'zoneinfo'
|
||||||
|
-)
|
||||||
|
+DEFAULT_DIRECTORY = '/usr/share/zoneinfo'
|
||||||
|
|
||||||
|
_DIRECTORY = os.getenv('PYTZDATA_TZDATADIR', DEFAULT_DIRECTORY)
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'python3-pytzdata'
|
# Template file for 'python3-pytzdata'
|
||||||
pkgname=python3-pytzdata
|
pkgname=python3-pytzdata
|
||||||
version=2020.1
|
version=2020.1
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="pytzdata-${version}"
|
wrksrc="pytzdata-${version}"
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
hostmakedepends="python3-poetry-core"
|
hostmakedepends="python3-poetry-core"
|
||||||
depends="python3"
|
depends="python3 tzdata"
|
||||||
checkdepends="python3-pytest"
|
checkdepends="python3-pytest"
|
||||||
short_desc="Olson timezone database for Python"
|
short_desc="Olson timezone database for Python"
|
||||||
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
||||||
|
@ -14,6 +14,10 @@ homepage="https://github.com/sdispater/pytzdata"
|
||||||
distfiles="https://github.com/sdispater/pytzdata/archive/refs/tags/${version}.tar.gz"
|
distfiles="https://github.com/sdispater/pytzdata/archive/refs/tags/${version}.tar.gz"
|
||||||
checksum=ffec92eb79bb2155862c9c3b80efb12a052182c197098501ec986d5ea1d178df
|
checksum=ffec92eb79bb2155862c9c3b80efb12a052182c197098501ec986d5ea1d178df
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
rm -rf pytzdata/zoneinfo
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue