Summary(pl.UTF-8): Moduł do walidacji, tworzenia i konwersji formularzy HTML
Name: python-%{module}
Version: 1.3.1
-Release: 4
+Release: 5
License: PSF
Group: Development/Languages/Python
#Source0Download: https://pypi.org/project/FormEncode/
Source0: https://files.pythonhosted.org/packages/source/F/FormEncode/%{module}-%{version}.tar.gz
# Source0-md5: 16fbefb206064eb93a6719f054a19b3b
Patch0: %{name}-pycountry.patch
+Patch1: versions.patch
URL: http://formencode.org/
%if %{with python2}
BuildRequires: python-modules >= 1:2.6
%prep
%setup -q -n %{module}-%{version}
%patch0 -p1
+%patch1 -p1
# uses network to validate domains (with one no longer valid anyway)
%{__rm} formencode/tests/test_email.py
--- /dev/null
+--- FormEncode-1.3.1/setup.py~ 2016-08-09 04:14:05.000000000 +0200
++++ FormEncode-1.3.1/setup.py 2022-04-08 23:45:49.466208656 +0200
+@@ -11,9 +11,6 @@
+
+ version = '1.3.1'
+
+-if not '2.6' <= sys.version < '3.0' and not '3.2' <= sys.version:
+- raise ImportError('Python version not supported')
+-
+ tests_require = ['nose', 'pycountry',
+ 'dnspython' if sys.version < '3.0' else 'dnspython3']
+