3 %bcond_with tests # unit tests (not included in sdist)
5 Summary: Composable complex class support for attrs
6 Summary(pl.UTF-8): Obsługa składanych klas złożonych dla attrs
11 Group: Libraries/Python
12 #Source0Download: https://pypi.org/simple/cattrs/
13 Source0: https://files.pythonhosted.org/packages/source/c/cattrs/cattrs-%{version}.tar.gz
14 # Source0-md5: 693fc2033e09019103bf2a184ba027f9
15 URL: https://pypi.org/project/cattrs/
16 BuildRequires: python3-modules >= 1:3.7
17 BuildRequires: python3-setuptools
19 BuildRequires: python3-attrs >= 20
20 BuildRequires: python3-pytest
21 %if "%{py3_ver}" == "3.7"
22 BuildRequires: python3-typing_extensions
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python3-modules >= 1:3.7
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 cattrs is an open source Python library for structuring and
33 unstructuring data. cattrs works best with attrs classes and the usual
34 Python collections, but other kinds of classes are supported by
35 manually registering converters.
37 %description -l pl.UTF-8
38 cattrs to mająca otwarte źródła biblioteka Pythona do strukturyzacji i
39 destrukturyzacji danych. Najlepiej działa z klasami attrs oraz
40 zwykłymi kolekcjami Pythona, ale inne rodzaje klas są obsługiwane
41 poprzez ręcznie rejestrowane konwertery.
44 %setup -q -n cattrs-%{version}
50 %{__python3} -m pytest tests
54 rm -rf $RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc LICENSE README.rst
64 %{py3_sitescriptdir}/cattr
65 %{py3_sitescriptdir}/cattrs
66 %{py3_sitescriptdir}/cattrs-%{version}-py*.egg-info