mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
0215034f25
when they already rely on SRI hashes.
50 lines
918 B
Nix
50 lines
918 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, importlib-resources
|
|
, importlib-metadata
|
|
, iso3166
|
|
, pycountry
|
|
, pytestCheckHook
|
|
, pytest-cov
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "schwifty";
|
|
version = "2023.2.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-YEBBrU+Xcl5zFPEt/EvPD5eFPUYSpGJ3ZoIK6PRVwlc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
iso3166
|
|
pycountry
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
importlib-resources
|
|
] ++ lib.optionals (pythonOlder "3.7") [
|
|
importlib-metadata
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|