From 33cc8433b0e20f782815fb6675794282d7262391 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Mon, 12 Feb 2024 19:01:27 +0100 Subject: [PATCH] gnu: Add python-schwifty. * gnu/packages/finance.scm (python-schwifty): New variable. Change-Id: Ice95f618331866d15b41c9cc5ee2e038aa93c16f --- gnu/packages/finance.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index adc3a1b2cb4b528c6113280ad0ccfed00e4984ba..f7a9a3b8de6efc7f880a3ad3232227ec9ff3cde3 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2015, 2016, 2023 Andreas Enge ;;; Copyright © 2016-2018, 2023 Efraim Flashner ;;; Copyright © 2016 Alex Griffin -;;; Copyright © 2016, 2020 Hartmut Goebel +;;; Copyright © 2016, 2020, 2024, 2025 Hartmut Goebel ;;; Copyright © 2017 Carlo Zancanaro ;;; Copyright © 2017 Theodoros Foradis ;;; Copyright © 2017 Vasile Dumitrascu @@ -110,6 +110,7 @@ #:use-module (gnu packages haskell-check) #:use-module (gnu packages haskell-web) #:use-module (gnu packages haskell-xyz) + #:use-module (gnu packages iso-codes) #:use-module (gnu packages jemalloc) #:use-module (gnu packages libedit) #:use-module (gnu packages libevent) @@ -1588,6 +1589,30 @@ The module also includes implementations of the Verhoeff, Luhn and family of ISO/IEC 7064 check digit algorithms.") (license license:lgpl2.1+))) +(define-public python-schwifty + (package + (name "python-schwifty") + (version "2025.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "schwifty" version)) + (sha256 + (base32 "16d0q1yzrh9fn6ybbsvhr9wbgld27rvn152w4wdcibidq2jbi0s2")))) + (build-system pyproject-build-system) + (native-inputs (list python-hatchling python-hatch-vcs python-pytest + python-pydantic-2)) + (propagated-inputs (list python-importlib-resources python-pycountry + python-rstr python-typing-extensions)) + (home-page "http://github.com/mdomke/schwifty/") + (synopsis "Python module to work with IBANs and BICs") + (description + "schwifty is a Python library that let's you easily work with +IBANs and BICs as specified by the ISO. IBAN is the Internation Bank Account +Number and BIC the Business Identifier Code. Both are used for international +money transfer.") + (license license:expat))) + (define-public python-duniterpy (package (name "python-duniterpy")