forked from pool/python-Faker
- Add patch ipaddress.patch to fix its runtime detection
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=21
This commit is contained in:
parent
0cd20a600c
commit
8caacdbddc
13
ipaddress.patch
Normal file
13
ipaddress.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: Faker-1.0.4/setup.py
|
||||
===================================================================
|
||||
--- Faker-1.0.4.orig/setup.py
|
||||
+++ Faker-1.0.4/setup.py
|
||||
@@ -78,7 +78,7 @@ setup(
|
||||
"freezegun==0.3.11",
|
||||
],
|
||||
extras_require={
|
||||
- ':python_version=="2.7"': [
|
||||
+ ':python_version<"3.3"': [
|
||||
'ipaddress',
|
||||
],
|
||||
},
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 15 12:02:12 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Add patch ipaddress.patch to fix its runtime detection
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 14 14:26:07 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -26,6 +26,7 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/joke2k/faker
|
||||
Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz
|
||||
Patch0: ipaddress.patch
|
||||
BuildRequires: %{python_module UkPostcodeParser >= 1.1.1}
|
||||
BuildRequires: %{python_module email_validator >= 1.0.2}
|
||||
BuildRequires: %{python_module freezegun >= 0.3.11}
|
||||
@ -65,6 +66,7 @@ testing, and data anonymization from production services.
|
||||
|
||||
%prep
|
||||
%setup -q -n Faker-%{version}
|
||||
%patch0 -p1
|
||||
# Remove pre-existing bytecode files in the sdist
|
||||
find . -name '*.py[co]' -delete
|
||||
# do not hardcode versions
|
||||
|
Loading…
Reference in New Issue
Block a user