14
0
Files
python-python-stdnum/python-python-stdnum.spec

68 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-python-stdnum
#
# Copyright (c) 2025 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/
#
- update to 1.19: * Add modules for the following number formats: - Tax Registration Number (الرقم الضريبي, Egypt tax number) - Postcode (the Spanish postal code) (thanks Víctor) - NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number) - BIS (Belgian BIS number) (thanks Jeff Horemans) - Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar) - OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana) * Extend the validation of the Albanian NIPT * Support different date formats in parsing GS1-128 application identifiers * Add get_county() function to Romanian CNP * Add functionality to get gender from Belgian National Number * Add support for Finland HETU new century indicating signs * Add functionality to get (partial) birth date from Belgian National Number * Extend validation of Canadian SIN (thanks Marcel Lecker) * Fix Belarusian UNP online validation * Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos, * Add contribution information to documentation * Test suite improvements (including checking file headers) * Add modules for the following number formats: - NN, NISS (Belgian national number) (thanks Cédric Krier) - CFI (ISO 10962 Classification of Financial Instruments) - Czech bank account number (thanks Petr Přikryl) - NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19
2024-01-23 21:48:02 +00:00
%global modname python-stdnum
%{?sle15_python_module_pythons}
Name: python-%{modname}
Version: 1.20
Release: 0
Summary: Python module to handle standardized numbers and codes
License: LGPL-2.1-or-later
URL: https://arthurdejong.org/python-stdnum/
Source: https://files.pythonhosted.org/packages/source/p/python-stdnum/%{modname}-%{version}.tar.gz
- update to 1.19: * Add modules for the following number formats: - Tax Registration Number (الرقم الضريبي, Egypt tax number) - Postcode (the Spanish postal code) (thanks Víctor) - NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number) - BIS (Belgian BIS number) (thanks Jeff Horemans) - Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar) - OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana) * Extend the validation of the Albanian NIPT * Support different date formats in parsing GS1-128 application identifiers * Add get_county() function to Romanian CNP * Add functionality to get gender from Belgian National Number * Add support for Finland HETU new century indicating signs * Add functionality to get (partial) birth date from Belgian National Number * Extend validation of Canadian SIN (thanks Marcel Lecker) * Fix Belarusian UNP online validation * Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos, * Add contribution information to documentation * Test suite improvements (including checking file headers) * Add modules for the following number formats: - NN, NISS (Belgian national number) (thanks Cédric Krier) - CFI (ISO 10962 Classification of Financial Instruments) - Czech bank account number (thanks Petr Přikryl) - NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19
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}
BuildRequires: %{python_module setuptools}
- update to 1.19: * Add modules for the following number formats: - Tax Registration Number (الرقم الضريبي, Egypt tax number) - Postcode (the Spanish postal code) (thanks Víctor) - NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number) - BIS (Belgian BIS number) (thanks Jeff Horemans) - Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar) - OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana) * Extend the validation of the Albanian NIPT * Support different date formats in parsing GS1-128 application identifiers * Add get_county() function to Romanian CNP * Add functionality to get gender from Belgian National Number * Add support for Finland HETU new century indicating signs * Add functionality to get (partial) birth date from Belgian National Number * Extend validation of Canadian SIN (thanks Marcel Lecker) * Fix Belarusian UNP online validation * Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos, * Add contribution information to documentation * Test suite improvements (including checking file headers) * Add modules for the following number formats: - NN, NISS (Belgian national number) (thanks Cédric Krier) - CFI (ISO 10962 Classification of Financial Instruments) - Czech bank account number (thanks Petr Přikryl) - NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19
2024-01-23 21:48:02 +00:00
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-PySimpleSOAP
Suggests: python-suds
BuildArch: noarch
%python_subpackages
%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
%setup -q -n %{modname}-%{version}
%build
- update to 1.19: * Add modules for the following number formats: - Tax Registration Number (الرقم الضريبي, Egypt tax number) - Postcode (the Spanish postal code) (thanks Víctor) - NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number) - BIS (Belgian BIS number) (thanks Jeff Horemans) - Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar) - OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana) * Extend the validation of the Albanian NIPT * Support different date formats in parsing GS1-128 application identifiers * Add get_county() function to Romanian CNP * Add functionality to get gender from Belgian National Number * Add support for Finland HETU new century indicating signs * Add functionality to get (partial) birth date from Belgian National Number * Extend validation of Canadian SIN (thanks Marcel Lecker) * Fix Belarusian UNP online validation * Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos, * Add contribution information to documentation * Test suite improvements (including checking file headers) * Add modules for the following number formats: - NN, NISS (Belgian national number) (thanks Cédric Krier) - CFI (ISO 10962 Classification of Financial Instruments) - Czech bank account number (thanks Petr Přikryl) - NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19
2024-01-23 21:48:02 +00:00
%pyproject_wheel
%install
- update to 1.19: * Add modules for the following number formats: - Tax Registration Number (الرقم الضريبي, Egypt tax number) - Postcode (the Spanish postal code) (thanks Víctor) - NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number) - BIS (Belgian BIS number) (thanks Jeff Horemans) - Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar) - OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana) * Extend the validation of the Albanian NIPT * Support different date formats in parsing GS1-128 application identifiers * Add get_county() function to Romanian CNP * Add functionality to get gender from Belgian National Number * Add support for Finland HETU new century indicating signs * Add functionality to get (partial) birth date from Belgian National Number * Extend validation of Canadian SIN (thanks Marcel Lecker) * Fix Belarusian UNP online validation * Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos, * Add contribution information to documentation * Test suite improvements (including checking file headers) * Add modules for the following number formats: - NN, NISS (Belgian national number) (thanks Cédric Krier) - CFI (ISO 10962 Classification of Financial Instruments) - Czech bank account number (thanks Petr Přikryl) - NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19
2024-01-23 21:48:02 +00:00
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%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
%files %{python_files}
%license COPYING
%doc NEWS ChangeLog README.md
- update to 1.19: * Add modules for the following number formats: - Tax Registration Number (الرقم الضريبي, Egypt tax number) - Postcode (the Spanish postal code) (thanks Víctor) - NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number) - BIS (Belgian BIS number) (thanks Jeff Horemans) - Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar) - OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana) * Extend the validation of the Albanian NIPT * Support different date formats in parsing GS1-128 application identifiers * Add get_county() function to Romanian CNP * Add functionality to get gender from Belgian National Number * Add support for Finland HETU new century indicating signs * Add functionality to get (partial) birth date from Belgian National Number * Extend validation of Canadian SIN (thanks Marcel Lecker) * Fix Belarusian UNP online validation * Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos, * Add contribution information to documentation * Test suite improvements (including checking file headers) * Add modules for the following number formats: - NN, NISS (Belgian national number) (thanks Cédric Krier) - CFI (ISO 10962 Classification of Financial Instruments) - Czech bank account number (thanks Petr Přikryl) - NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19
2024-01-23 21:48:02 +00:00
%{python_sitelib}/stdnum
%{python_sitelib}/python_stdnum-%{version}.dist-info
%changelog