2013-09-02 14:53:40 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-itsdangerous
|
|
|
|
#
|
2021-06-21 08:05:42 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-09-02 14:53:40 +00: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 13:34:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-17 13:03:20 +00:00
|
|
|
#
|
2013-09-02 14:53:40 +00:00
|
|
|
|
|
|
|
|
2021-06-21 08:05:42 +00:00
|
|
|
%define oldpython python
|
|
|
|
%define skip_python2 1
|
2017-04-06 15:04:04 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-09-02 14:53:40 +00:00
|
|
|
Name: python-itsdangerous
|
2021-06-21 08:05:42 +00:00
|
|
|
Version: 2.0.1
|
2013-09-02 14:53:40 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Various helpers to pass trusted data to untrusted environments and back
|
2016-11-17 13:03:20 +00:00
|
|
|
License: BSD-3-Clause
|
2013-09-02 14:53:40 +00:00
|
|
|
Group: Development/Languages/Python
|
2021-06-21 08:05:42 +00:00
|
|
|
URL: https://itsdangerous.palletsprojects.com
|
2017-04-06 15:04:04 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz
|
2019-06-11 09:00:39 +00:00
|
|
|
BuildRequires: %{python_module freezegun}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2018-12-06 17:00:15 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2017-04-06 15:04:04 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2013-09-02 14:53:40 +00:00
|
|
|
BuildArch: noarch
|
2017-04-06 15:04:04 +00:00
|
|
|
%python_subpackages
|
2013-09-02 14:53:40 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
It's Dangerous
|
|
|
|
... so better sign this
|
|
|
|
|
|
|
|
Various helpers to pass data to untrusted environments and to get it back
|
|
|
|
safe and sound.
|
|
|
|
|
|
|
|
This repository provides a module that is a port of the django signing
|
|
|
|
module. It's not directly copied but some changes were applied to
|
|
|
|
make it work better on its own.
|
|
|
|
|
|
|
|
Also I plan to add some extra things. Work in progress.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n itsdangerous-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-04-06 15:04:04 +00:00
|
|
|
%python_build
|
2013-09-02 14:53:40 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-06 15:04:04 +00:00
|
|
|
%python_install
|
2018-12-06 17:00:15 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-09-02 14:53:40 +00:00
|
|
|
|
2019-06-11 09:00:39 +00:00
|
|
|
%check
|
|
|
|
%pytest tests
|
|
|
|
|
2017-04-06 15:04:04 +00:00
|
|
|
%files %{python_files}
|
2019-06-11 09:00:39 +00:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc CHANGES.rst README.rst
|
2013-09-02 14:53:40 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|