889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
49 lines
914 B
Nix
49 lines
914 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, importlib-resources
|
|
, importlib-metadata
|
|
, iso3166
|
|
, pycountry
|
|
, pytestCheckHook
|
|
, pytest-cov
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "schwifty";
|
|
version = "2022.6.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-urXYEX7QFl2HwoCwTSj+83TYQOkfqbc+aGJaBwKVorU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|