]> git.pld-linux.org Git - packages/python3-cattrs.git/blame - python3-cattrs.spec
Release 4 (by relup.sh)
[packages/python3-cattrs.git] / python3-cattrs.spec
CommitLineData
9a6ffd3f
JB
1#
2# Conditional build:
3%bcond_with tests # unit tests (not included in sdist)
4
5Summary: Composable complex class support for attrs
6Summary(pl.UTF-8): Obsługa składanych klas złożonych dla attrs
7Name: python3-cattrs
2342ac6f 8Version: 1.10.0
71a1c2ea 9Release: 4
9a6ffd3f
JB
10License: MIT
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/cattrs/
13Source0: https://files.pythonhosted.org/packages/source/c/cattrs/cattrs-%{version}.tar.gz
2342ac6f 14# Source0-md5: 693fc2033e09019103bf2a184ba027f9
9a6ffd3f
JB
15URL: https://pypi.org/project/cattrs/
16BuildRequires: python3-modules >= 1:3.7
17BuildRequires: python3-setuptools
18%if %{with tests}
19BuildRequires: python3-attrs >= 20
20BuildRequires: python3-pytest
21%if "%{py3_ver}" == "3.7"
22BuildRequires: python3-typing_extensions
23%endif
24%endif
25BuildRequires: rpm-pythonprov
26BuildRequires: rpmbuild(macros) >= 1.714
27Requires: python3-modules >= 1:3.7
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32cattrs is an open source Python library for structuring and
33unstructuring data. cattrs works best with attrs classes and the usual
34Python collections, but other kinds of classes are supported by
35manually registering converters.
36
37%description -l pl.UTF-8
38cattrs to mająca otwarte źródła biblioteka Pythona do strukturyzacji i
39destrukturyzacji danych. Najlepiej działa z klasami attrs oraz
40zwykłymi kolekcjami Pythona, ale inne rodzaje klas są obsługiwane
41poprzez ręcznie rejestrowane konwertery.
42
43%prep
44%setup -q -n cattrs-%{version}
45
46%build
47%py3_build
48
49%if %{with tests}
50%{__python3} -m pytest tests
51%endif
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56%py3_install
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc LICENSE README.rst
64%{py3_sitescriptdir}/cattr
2342ac6f 65%{py3_sitescriptdir}/cattrs
9a6ffd3f 66%{py3_sitescriptdir}/cattrs-%{version}-py*.egg-info
This page took 0.139168 seconds and 4 git commands to generate.