[packages/python3-faker] - updated to 37.4.0, drop tzdata dependency (rely on system tz database)
qboosh
qboosh at pld-linux.org
Sun Jul 13 18:59:55 CEST 2025
commit 36402fff5b1ac75175af412def43e38a6a53bc16
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 13 19:01:26 2025 +0200
- updated to 37.4.0, drop tzdata dependency (rely on system tz database)
faker-no-tzdata.patch | 9 +++++++++
python3-faker.spec | 29 +++++++++++++++++++----------
2 files changed, 28 insertions(+), 10 deletions(-)
---
diff --git a/python3-faker.spec b/python3-faker.spec
index 1b1a8a8..1036e94 100644
--- a/python3-faker.spec
+++ b/python3-faker.spec
@@ -5,29 +5,32 @@
Summary: Faker - Python package that generates fake data for you
Summary(pl.UTF-8): Faker - pakiet Pythona generujący fałszywe dane
Name: python3-faker
-Version: 37.1.0
+Version: 37.4.0
Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/Faker/
Source0: https://files.pythonhosted.org/packages/source/F/Faker/faker-%{version}.tar.gz
-# Source0-md5: 10698ac88368efa4d507fa69020b5a3e
+# Source0-md5: ff33aa3b66c811abcb7dc56fb5510046
+Patch0: faker-no-tzdata.patch
URL: https://pypi.org/project/Faker/
-BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-modules >= 1:3.9
BuildRequires: python3-setuptools
%if %{with tests}
-BuildRequires: python3-dateutil >= 2.4
BuildRequires: python3-freezegun
-BuildRequires: python3-pytest
-BuildRequires: python3-random2
-BuildRequires: python3-six >= 1.10
+BuildRequires: python3-pillow
+BuildRequires: python3-pytest >= 6.0.1
BuildRequires: python3-text-unidecode >= 1.3
-BuildRequires: python3-ukpostcodeparser
-BuildRequires: python3-validators
+BuildRequires: python3-ukpostcodeparser >= 1.1.1
+BuildRequires: python3-validators >= 0.13.0
+BuildRequires: python3-xmltodict
+# optional
+#BuildRequires: python3-tzdata
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.5
+Requires: python3-modules >= 1:3.9
+Requires: tzdata-zoneinfo
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -45,12 +48,18 @@ z usługi produkcyjnej.
%prep
%setup -q -n faker-%{version}
+%patch -P0 -p1
+
+# force regeneration to drop tzdata dependency
+%{__rm} -r Faker.egg-info
%build
%py3_build
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=faker.contrib.pytest.plugin \
+PYTHONPATH=$(pwd) \
%{__python3} -m pytest tests
%endif
diff --git a/faker-no-tzdata.patch b/faker-no-tzdata.patch
new file mode 100644
index 0000000..381690e
--- /dev/null
+++ b/faker-no-tzdata.patch
@@ -0,0 +1,9 @@
+--- faker-37.4.0/setup.py.orig 2025-03-05 18:30:55.000000000 +0100
++++ faker-37.4.0/setup.py 2025-07-13 18:36:05.526857253 +0200
+@@ -67,6 +67,5 @@ setup(
+ },
+ platforms=["any"],
+ zip_safe=zip_safe,
+- install_requires=["tzdata"],
+ python_requires=">=3.9",
+ )
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-faker.git/commitdiff/36402fff5b1ac75175af412def43e38a6a53bc16
More information about the pld-cvs-commit
mailing list