]> git.pld-linux.org Git - packages/python3-toolz.git/blob - python3-toolz.spec
3e7b5021105522f506b6a559d6621b6a72810e23
[packages/python3-toolz.git] / python3-toolz.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4
5 Summary:        List processing tools and functional utilities
6 Summary(pl.UTF-8):      Narzędzia do przetwarzania list oraz funkcyjne
7 Name:           python3-toolz
8 Version:        0.11.2
9 Release:        2
10 License:        BSD
11 Group:          Libraries/Python
12 #Source0Download: https://pypi.org/simple/toolz/
13 Source0:        https://files.pythonhosted.org/packages/source/t/toolz/toolz-%{version}.tar.gz
14 # Source0-md5:  6326604f5ed1bc84fa4538b6ab37ad5d
15 URL:            https://pypi.org/project/toolz/
16 BuildRequires:  python3-modules >= 1:3.5
17 BuildRequires:  python3-setuptools
18 %if %{with tests}
19 BuildRequires:  python3-pytest
20 %endif
21 BuildRequires:  rpm-pythonprov
22 BuildRequires:  rpmbuild(macros) >= 1.714
23 Requires:       python3-modules >= 1:3.5
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 A set of utility functions for iterators, functions, and dictionaries.
29
30 %description -l pl.UTF-8
31 Zbiór funkcji narzędziowych do iteratorów, funkcji i słowników.
32
33 %prep
34 %setup -q -n toolz-%{version}
35
36 %build
37 %py3_build
38
39 %if %{with tests}
40 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
41 %{__python3} -m pytest toolz/tests
42 %endif
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %py3_install
48
49 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/toolz/tests
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc AUTHORS.md LICENSE.txt README.rst
57 %{py3_sitescriptdir}/tlz
58 %{py3_sitescriptdir}/toolz
59 %{py3_sitescriptdir}/toolz-%{version}-py*.egg-info
This page took 0.082563 seconds and 2 git commands to generate.