python3-stdnum: Add recipe

Add a recipe for python-stdnum, a Python module to handle
standardized numbers and codes. The changelog for release 2.2
includes:

- Add modules for the following number formats:

  VÖEN (Vergi ödəyicisinin eyniləşdirmə nömrəsi, Azerbaijan
  tax number)

  Belgian OGM-VCS

  Leitweg-ID, a buyer reference or routing identifier for
  electronic invoices

  European Excise Number

  n° d'accise (French number to identify taxpayers of excise
  taxes)

  RCS (French trade registration number for commercial companies)

  NUIT (Número Único de Identificação Tributaria, Mozambique tax
  number)

  NINEA (Numéro d'Identification Nationale des Entreprises et
  Associations, Senegal tax number)

- Fix handling of decimals in Application Identifiers
- Update list of valid Chinese counties
- Mark more Romanian CNP county codes as valid
- Support Latvian personal codes issued after 2017
- Provide aliases for Estonian numbers
- Add validation of country code in BIC
- Add function to convert a French VAT number into a SIREN
- Add a function to format a French SIREN
- Add extra validation of Belgian VAT numbers
- Add support for nace revision 2.1
- Support the new Romanian ONRC format
- Support new format for Brazilian CNPJ

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Leon Anavi authored and Khem Raj committed 2026-10-20 07:51:42 -07:00
1 parent 0fead6869a
commit 5741d91827
1 file changed
+24
@@ -0,0 +1,24 @@
SUMMARY = "Python module to handle standardized numbers and codes"
HOMEPAGE = "https://arthurdejong.org/python-stdnum/"
LICENSE = "LGPL-2.0-or-later AND LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
SRC_URI[sha256sum] = "e95fcfa858a703d4a40130cb3eaac133c60d8808a7f3c98efeedac968c2479b9"
PYPI_PACKAGE = "python-stdnum"
inherit pypi setuptools3
PACKAGECONFIG[soap] = ",,,python3-zeep"
RDEPENDS:${PN} += " \
python3-core \
python3-crypt \
python3-datetime \
python3-io \
python3-json \
python3-lxml \
python3-numbers \
python3-pydoc \
python3-requests \
"