2013-10-21 13:54:37 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-toolz
|
|
|
|
#
|
2021-03-08 23:48:44 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-10-21 13:54:37 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 15:10:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-11 09:46:49 +01:00
|
|
|
#
|
2013-10-21 13:54:37 +02:00
|
|
|
|
|
|
|
|
2017-04-19 04:34:06 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-03-08 23:48:44 +01:00
|
|
|
%global skip_python2 1
|
2013-10-21 13:54:37 +02:00
|
|
|
Name: python-toolz
|
2021-03-08 23:48:44 +01:00
|
|
|
Version: 0.11.1
|
2013-10-21 13:54:37 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: List processing tools and functional utilities for python
|
2018-03-11 09:46:49 +01:00
|
|
|
License: BSD-3-Clause
|
2013-10-21 13:54:37 +02:00
|
|
|
Group: Development/Languages/Python
|
2019-07-22 14:35:48 +02:00
|
|
|
URL: https://github.com/pytoolz/toolz/
|
2017-04-19 04:34:06 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/toolz/toolz-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-03-11 09:46:49 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2013-10-21 13:54:37 +02:00
|
|
|
BuildArch: noarch
|
2019-06-03 16:25:10 +02:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
2017-04-19 04:34:06 +02:00
|
|
|
%python_subpackages
|
2013-10-21 13:54:37 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A set of python utility functions for iterators, functions, and dictionaries.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n toolz-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-04-19 04:34:06 +02:00
|
|
|
%python_build
|
2013-10-21 13:54:37 +02:00
|
|
|
|
|
|
|
%install
|
2017-04-19 04:34:06 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-10-21 13:54:37 +02:00
|
|
|
|
2019-06-03 16:25:10 +02:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2017-04-19 04:34:06 +02:00
|
|
|
%files %{python_files}
|
2018-03-11 09:46:49 +01:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE.txt
|
2013-10-21 13:54:37 +02:00
|
|
|
%{python_sitelib}/toolz/
|
2017-04-19 04:34:06 +02:00
|
|
|
%{python_sitelib}/tlz/
|
2013-10-21 13:54:37 +02:00
|
|
|
%{python_sitelib}/toolz-%{version}-py*.egg-info/
|
|
|
|
|
|
|
|
%changelog
|