From b7ee396eda1c415dd52f5323b9eaf15549e685f7 Mon Sep 17 00:00:00 2001 From: icp Date: Sat, 27 Aug 2022 00:48:47 +0530 Subject: [PATCH] New package: python3-pytz_deprecation_shim-0.1.0 --- .../patches/tzdata.patch | 10 ++++++++++ srcpkgs/python3-pytz_deprecation_shim/template | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 srcpkgs/python3-pytz_deprecation_shim/patches/tzdata.patch create mode 100644 srcpkgs/python3-pytz_deprecation_shim/template diff --git a/srcpkgs/python3-pytz_deprecation_shim/patches/tzdata.patch b/srcpkgs/python3-pytz_deprecation_shim/patches/tzdata.patch new file mode 100644 index 00000000000..672b27945d4 --- /dev/null +++ b/srcpkgs/python3-pytz_deprecation_shim/patches/tzdata.patch @@ -0,0 +1,10 @@ +--- a/setup.cfg ++++ b/setup.cfg +@@ -33,7 +33,6 @@ packages = pytz_deprecation_shim + install_requires = + backports.zoneinfo;python_version>="3.6" and python_version<"3.9" + python-dateutil;python_version<"3.6" +- tzdata;python_version>="3.6" + python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.* + package_dir = + =src diff --git a/srcpkgs/python3-pytz_deprecation_shim/template b/srcpkgs/python3-pytz_deprecation_shim/template new file mode 100644 index 00000000000..04368a25c89 --- /dev/null +++ b/srcpkgs/python3-pytz_deprecation_shim/template @@ -0,0 +1,16 @@ +# Template file for 'python3-pytz_deprecation_shim' +pkgname=python3-pytz_deprecation_shim +version=0.1.0 +revision=1 +wrksrc="pytz-deprecation-shim-${version}" +build_style=python3-pep517 +hostmakedepends="python3-wheel" +depends="python3" +checkdepends="python3-pytz python3-attrs python3-hypothesis python3-pytest-xdist" +short_desc="Shims to make deprecation of pytz easier" +maintainer="icp " +license="Apache-2.0" +homepage="https://github.com/pganssle/pytz-deprecation-shim" +distfiles="https://github.com/pganssle/pytz-deprecation-shim/archive/refs/tags/${version}.tar.gz" +checksum=b72ff0470c084d70e93174e9881443aba274ef6ec3cc6c4bd88bd0ba64ea8bdd +make_check_pre="env PYTHONPATH=src"