2017-09-08 20:27:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pyrsistent
|
|
|
|
#
|
2018-08-11 07:18:10 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-09-08 20:27:46 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2018-08-11 07:18:10 +02:00
|
|
|
#
|
2017-09-08 20:27:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%bcond_without test
|
|
|
|
Name: python-pyrsistent
|
2018-08-11 07:18:10 +02:00
|
|
|
Version: 0.14.4
|
2017-09-08 20:27:46 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Persistent, Functional, Immutable data structures
|
2018-08-11 07:18:10 +02:00
|
|
|
License: MIT
|
2017-09-08 20:27:46 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-08-11 07:18:10 +02:00
|
|
|
URL: http://github.com/tobgu/pyrsistent/
|
2017-09-08 20:27:46 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyrsistent/pyrsistent-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-08-11 07:18:10 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-six
|
2017-09-08 20:27:46 +02:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module hypothesis}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pyrsistent is a number of persistent collections
|
|
|
|
(by some referred to as functional data structures).
|
|
|
|
Persistent in the sense that they are immutable.
|
|
|
|
|
|
|
|
All methods on a data structure that would normally
|
|
|
|
mutate it instead return a new copy of the structure
|
|
|
|
containing the requested updates. The original structure
|
|
|
|
is left untouched.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyrsistent-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
|
|
py.test-%{$python_bin_suffix}
|
|
|
|
}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc CHANGES.txt LICENCE.mit README README.rst
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|