Merge pull request #177025 from milibopp/add-python-schwifty
python3Packages.schwifty: init at 2022.6.0
This commit is contained in:
commit
6b1f99bf02
2 changed files with 51 additions and 0 deletions
49
pkgs/development/python-modules/schwifty/default.nix
Normal file
49
pkgs/development/python-modules/schwifty/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue