Summary: Simple module to parse ISO 8601 dates
Summary(pl.UTF-8): Prosty moduĊ do analizy dat ISO 8601
Name: python-%{module}
-Version: 0.1.11
-Release: 2
+Version: 0.1.12
+Release: 1
License: MIT
Group: Development/Languages/Python
#Source0Download: https://pypi.python.org/simple/iso8601/
-Source0: https://pypi.python.org/packages/source/i/iso8601/%{module}-%{version}.tar.gz
-# Source0-md5: b06d11cd14a64096f907086044f0fe38
+Source0: https://files.pythonhosted.org/packages/source/i/iso8601/%{module}-%{version}.tar.gz
+# Source0-md5: 4de940f691c5ea759fb254384c8ddcf6
URL: https://bitbucket.org/micktwomey/pyiso8601
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
BuildRequires: python-devel >= 1:2.6
+%{?with_tests:BuildRequires: python-pytest}
+BuildRequires: python-setuptools
%endif
%if %{with python3}
BuildRequires: python3-devel >= 1:3.2
+%{?with_tests:BuildRequires: python3-pytest}
+BuildRequires: python3-setuptools
%endif
Requires: python-modules >= 1:2.6
BuildArch: noarch
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -mpytest iso8601/test_iso8601.py
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python} -mpytest iso8601/test_iso8601.py
+%endif
%endif
%install