File python-memento_client.spec of Package python-memento_client
#
# spec file for package python-memento_client
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-memento_client
Version: 0.6.1
Release: 0
License: BSD-3-Clause
Summary: Official Python library for using the Memento Protocol
Url: https://github.com/mementoweb/py-memento-client
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/m/memento_client/memento_client-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module Werkzeug >= 0.12}
BuildRequires: %{python_module memento_test >= 0.1.3}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.7.0}
%endif
Requires: python-requests >= 2.7.0
Recommends: python-lxml
BuildArch: noarch
%python_subpackages
%description
The memento_client library provides Memento support, as specified in
RFC 7089 (http://tools.ietf.org/html/rfc7089)
For more information about Memento, see:
http://www.mementoweb.org/about/
This library allows one to find information about archived web pages
using the Memento protocol. It is the goal of this library to make
the Memento protocol as accessible as possible to Python developers.
%prep
%setup -q -n memento_client-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc README.txt
%{python_sitelib}/*
%changelog