forked from pool/python-isbnlib
* Drop support for helper function 'to_utf8tex'. * Fix issue #123. * Improved strategy for 'goob' (issue #119). * Added pytest mark 'network' (issue #121) * Updated 'data ranges'. - drop mark-network-tests.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isbnlib?expand=0&rev=4
66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-isbnlib
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define modname isbnlib
|
|
Name: python-isbnlib
|
|
Version: 3.10.14
|
|
Release: 0
|
|
Summary: Extract, clean, transform, hyphenate and metadata for ISBNs
|
|
License: LGPL-3.0-only
|
|
URL: https://github.com/xlcnd/isbnlib
|
|
Source: https://github.com/xlcnd/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
|
BuildRequires: %{python_module anyio}
|
|
BuildRequires: %{python_module flaky}
|
|
BuildRequires: %{python_module hypothesis}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest-cov}
|
|
BuildRequires: %{python_module pytest-forked}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Extract, clean, transform, hyphenate and metadata for ISBNs
|
|
(International Standard Book Number).
|
|
|
|
%prep
|
|
%autosetup -p1 -n isbnlib-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export PYTEST_ADDOPTS="--ignore=isbnlib/test/test_classify.py"
|
|
%pytest -k 'not network'
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE-LGPL-3.0.txt
|
|
%{python_sitelib}/isbnlib
|
|
%{python_sitelib}/isbnlib-%{version}*-info
|
|
|
|
%changelog
|