From 70822f4ccad948b76463e10eece65b9ac6c3cec7 Mon Sep 17 00:00:00 2001 From: Richard PALO <richard.palo@free.fr> Date: Fri, 30 Dec 2022 18:01:36 +0100 Subject: [PATCH] Initial commit schwifty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/mdomke/schwifty Gotta get schwifty with your IBANs 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. Features schwifty lets you validate check-digits and the country specific format of IBANs validate format and country codes from BICs generate BICs from country and bank-code generate IBANs from country-code, bank-code and account-number. get the BIC associated to an IBAN’s bank-code access all relevant components as attributes Latest CHANGELOG entry 2022.09.0 - 2022/16/09 Added IBAN validation for Senegal mkopec87 Changed Refactored most of the scripts to generate the bank registry to use Pandas @pebosi Updated bank registry for Austria, Belgium, Germany, Spain, Hungary, Netherlands and Poland. --- .SRCINFO | 17 +++++++++++++++++ PKGBUILD | 23 +++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..6302ea6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-schwifty + pkgdesc = Validate/generate IBANS and BICS + pkgver = 2022.9.0 + pkgrel = 1 + url = http://github.com/mdomke/schwifty + arch = any + license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python>=3.7 + depends = python-iso3166 + depends = python-pycountry + source = https://files.pythonhosted.org/packages/source/s/schwifty/schwifty-2022.9.0.tar.gz + sha256sums = ff3c4ad2951f8391b9c3d13e401b751f5d8b77981673e59a91074d5513121620 + +pkgname = python-schwifty diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ee63453 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Contributor: Richard PALO <richard.palo@free.fr> +pkgname=python-schwifty +_name=${pkgname#python-} +pkgver=2022.9.0 +pkgrel=1 +pkgdesc="Validate/generate IBANS and BICS" +arch=('any') +url="http://github.com/mdomke/schwifty" +license=('MIT') +makedepends=(python-build python-installer python-wheel) +depends=('python>=3.7' python-iso3166 python-pycountry) +source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz) +sha256sums=('ff3c4ad2951f8391b9c3d13e401b751f5d8b77981673e59a91074d5513121620') + +build() { + cd "$srcdir/$_name-$pkgver" + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/$_name-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl +}