2016-07-07 07:28:12 +00:00
|
|
|
#
|
2024-03-21 17:09:03 +00:00
|
|
|
# spec file for package python-python-stdnum
|
2016-07-07 07:28:12 +00:00
|
|
|
#
|
2025-01-07 12:22:50 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2016-07-07 07:28:12 +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:56:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-09-23 10:29:34 +00:00
|
|
|
#
|
|
|
|
|
2024-01-23 21:48:02 +00:00
|
|
|
|
|
|
|
%global modname python-stdnum
|
2024-01-23 21:38:15 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-06-29 15:02:35 +00:00
|
|
|
Name: python-%{modname}
|
2024-03-21 17:09:03 +00:00
|
|
|
Version: 1.20
|
2016-07-07 07:28:12 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python module to handle standardized numbers and codes
|
2025-01-07 12:22:50 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2020-03-20 11:34:47 +00:00
|
|
|
URL: https://arthurdejong.org/python-stdnum/
|
2017-06-29 15:02:35 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-stdnum/%{modname}-%{version}.tar.gz
|
2024-01-23 21:48:02 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest-cov}
|
Accepting request 786829 from home:pgajdos:python
- version update to 1.13
* Add modules for the following number formats:
- ESR, ISR, QR-reference (reference number on Swiss payment slips)
(thanks Kurt Keller)
- ID number (South African Identity Document number)
* Add format function for ISO 11649 numbers (thanks Kurt Keller)
* Add support for Python 3.8 (thanks Sergi Almacellas Abellana)
* Clarify that the Italian Codice Fiscale can also be the IVA for companies
(thanks Nicholas Fiorentini)
* Support the new Dutch btw-identificatienummer (thanks Cas Vissers,
Jeroen van Heiningen, Jerome Hanke, Nicolas Martinelli, Ronald Portier and
Tim Muller)
* Extend test for Argentinian CUIT to check first two digits
* Add more country codes to ISIN (thanks nocluebutalotofit, Anwar Baroudi and
alexbond73)
* Add modules for the following number formats:
- NRT (Número de Registre Tributari, Andorra tax number)
(thanks Leandro Regueiro)
- CPF (Cédula de Persona Física, Costa Rica physical person ID number)
(thanks Leandro Regueiro)
- CPJ (Cédula de Persona Jurídica, Costa Rica tax number)
(thanks Leandro Regueiro)
- CR (Cédula de Residencia, Costa Rica foreigners ID number)
(thanks Leandro Regueiro)
- NIT (Número de Identificación Tributaria, Guatemala tax number)
(thanks Leandro Regueiro)
- Identity Number (Mispar Zehut, מספר זהות, Israeli identity number)
- CN (法人番号, hōjin bangō, Japanese Corporate Number)
(thanks Alan Hettinger)
- RRN (South Korean resident registration number)
OBS-URL: https://build.opensuse.org/request/show/786829
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=13
2020-03-20 11:31:59 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-06-29 15:02:35 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-01-23 21:48:02 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-06-29 15:02:35 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-07-07 07:28:12 +00:00
|
|
|
Suggests: python-PySimpleSOAP
|
|
|
|
Suggests: python-suds
|
|
|
|
BuildArch: noarch
|
2017-06-29 15:02:35 +00:00
|
|
|
%python_subpackages
|
2016-07-07 07:28:12 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library offers functions for parsing, validating and reformatting
|
|
|
|
standard numbers and codes in various formats.
|
|
|
|
|
|
|
|
Apart from the validate() function, modules generally provide extra
|
|
|
|
parsing, validation, formatting or conversion functions.
|
|
|
|
|
|
|
|
%prep
|
2017-06-29 15:02:35 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2016-07-07 07:28:12 +00:00
|
|
|
|
|
|
|
%build
|
2024-01-23 21:48:02 +00:00
|
|
|
%pyproject_wheel
|
2016-07-07 07:28:12 +00:00
|
|
|
|
|
|
|
%install
|
2024-01-23 21:48:02 +00:00
|
|
|
%pyproject_install
|
2018-12-07 10:35:31 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-06-29 15:02:35 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
Accepting request 786829 from home:pgajdos:python
- version update to 1.13
* Add modules for the following number formats:
- ESR, ISR, QR-reference (reference number on Swiss payment slips)
(thanks Kurt Keller)
- ID number (South African Identity Document number)
* Add format function for ISO 11649 numbers (thanks Kurt Keller)
* Add support for Python 3.8 (thanks Sergi Almacellas Abellana)
* Clarify that the Italian Codice Fiscale can also be the IVA for companies
(thanks Nicholas Fiorentini)
* Support the new Dutch btw-identificatienummer (thanks Cas Vissers,
Jeroen van Heiningen, Jerome Hanke, Nicolas Martinelli, Ronald Portier and
Tim Muller)
* Extend test for Argentinian CUIT to check first two digits
* Add more country codes to ISIN (thanks nocluebutalotofit, Anwar Baroudi and
alexbond73)
* Add modules for the following number formats:
- NRT (Número de Registre Tributari, Andorra tax number)
(thanks Leandro Regueiro)
- CPF (Cédula de Persona Física, Costa Rica physical person ID number)
(thanks Leandro Regueiro)
- CPJ (Cédula de Persona Jurídica, Costa Rica tax number)
(thanks Leandro Regueiro)
- CR (Cédula de Residencia, Costa Rica foreigners ID number)
(thanks Leandro Regueiro)
- NIT (Número de Identificación Tributaria, Guatemala tax number)
(thanks Leandro Regueiro)
- Identity Number (Mispar Zehut, מספר זהות, Israeli identity number)
- CN (法人番号, hōjin bangō, Japanese Corporate Number)
(thanks Alan Hettinger)
- RRN (South Korean resident registration number)
OBS-URL: https://build.opensuse.org/request/show/786829
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=13
2020-03-20 11:31:59 +00:00
|
|
|
%pytest
|
2016-07-07 07:28:12 +00:00
|
|
|
|
2017-06-29 15:02:35 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:20:14 +00:00
|
|
|
%license COPYING
|
2021-10-26 06:16:47 +00:00
|
|
|
%doc NEWS ChangeLog README.md
|
2024-01-23 21:48:02 +00:00
|
|
|
%{python_sitelib}/stdnum
|
|
|
|
%{python_sitelib}/python_stdnum-%{version}.dist-info
|
2016-07-07 07:28:12 +00:00
|
|
|
|
|
|
|
%changelog
|