# # Conditional build: %bcond_without tests # unit tests %define module pyrsistent Summary: Persistent/Functional/Immutable data structures Summary(pl.UTF-8): Trwałe/funkcyjne/niezmienne struktury danych Name: python3-pyrsistent Version: 0.18.1 Release: 2 License: MIT Group: Libraries/Python #Source0Download: https://pypi.org/simple/pyrsistent/ Source0: https://files.pythonhosted.org/packages/source/p/pyrsistent/%{module}-%{version}.tar.gz # Source0-md5: cef3da08455664bf917dcf8cd00d49a4 URL: http://github.com/tobgu/pyrsistent/ BuildRequires: python3-devel >= 1:3.7 BuildRequires: python3-setuptools %if %{with tests} BuildRequires: python3-hypothesis < 7 BuildRequires: python3-pytest < 7 BuildRequires: python3-six %endif BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.714 Requires: python3-modules >= 1:3.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Pyrsistent is a number of persistent collections (by some referred to as functional data structures). Persistent in the sense that they are immutable. %description -l pl.UTF-8 Pyrsistent to zbiór trwałych kolekcji (nazywanych także funkcyjnymi strukturami danych). Są trwałe w tym sensie, że są niezmienne. %prep %setup -q -n %{module}-%{version} # Remove bundled egg-info %{__rm} -r %{module}.egg-info %build %py3_build %if %{with tests} PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ %{__python3} -m pytest tests %endif %install rm -rf $RPM_BUILD_ROOT %py3_install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGES.txt README.rst %attr(755,root,root) %{py3_sitedir}/pvectorc.cpython-*.so %{py3_sitedir}/_pyrsistent_version.py %{py3_sitedir}/__pycache__/_pyrsistent_version.cpython-*.py[co] %{py3_sitedir}/pyrsistent %{py3_sitedir}/pyrsistent-%{version}-py*.egg-info