diff mbox series

[meta-python,08/14] python3-stdnum: Add recipe

Message ID 20261020123226.4033600-8-leon.anavi@konsulko.com
State Under Review
Headers show
Series [meta-python,01/14] python3-bitarray: Upgrade 3.12.2 -> 3.12.3 | expand

Commit Message

Leon Anavi Oct. 20, 2026, 12:32 p.m. UTC
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>
---
 .../python/python3-stdnum_2.2.bb              | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-stdnum_2.2.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-stdnum_2.2.bb b/meta-python/recipes-devtools/python/python3-stdnum_2.2.bb
new file mode 100644
index 0000000000..8753a5996a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-stdnum_2.2.bb
@@ -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 \
+"