Merge pull request #177025 from milibopp/add-python-schwifty

python3Packages.schwifty: init at 2022.6.0
This commit is contained in:
Fabian Affolter 2022-06-17 00:09:44 +02:00 committed by GitHub
commit 6b1f99bf02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchPypi
, importlib-resources
, importlib-metadata
, iso3166
, pycountry
, pytestCheckHook
, pytest-cov
, pythonOlder
}:
buildPythonPackage rec {
pname = "schwifty";
version = "2022.6.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-MekF96K8IPjop5764Oq6ZcvKJOTc1Qg/gV5Dz2iacBk=";
};
propagatedBuildInputs = [
iso3166
pycountry
] ++ lib.optionals (pythonOlder "3.8") [
importlib-resources
] ++ lib.optionals (pythonOlder "3.7") [
importlib-metadata
];
checkInputs = [
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [
"schwifty"
];
meta = with lib; {
description = "Validate/generate IBANs and BICs";
homepage = "https://github.com/mdomke/schwifty";
license = licenses.mit;
maintainers = with maintainers; [ milibopp ];
};
}

View file

@ -9478,6 +9478,8 @@ in {
schiene = callPackage ../development/python-modules/schiene { };
schwifty = callPackage ../development/python-modules/schwifty { };
scikit-bio = callPackage ../development/python-modules/scikit-bio { };
scikit-build = callPackage ../development/python-modules/scikit-build { };