Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / schwifty / default.nix
blob1a33c71f7ff5f6f467430945d762dafc59e22191
1 { lib
2 , buildPythonPackage
3 , fetchPypi
5 # build-system
6 , hatchling
7 , hatch-vcs
9 # dependencies
10 , iso3166
11 , pycountry
13 # optional-dependencies
14 , pydantic
16 # tests
17 , pytestCheckHook
18 , pytest-cov
19 , pythonOlder
22 buildPythonPackage rec {
23   pname = "schwifty";
24   version = "2024.1.1.post0";
25   format = "pyproject";
27   disabled = pythonOlder "3.7";
29   src = fetchPypi {
30     inherit pname version;
31     hash = "sha256-ZFDu+stuKdsVc8bTuSZ4LZX8BuQhORjyEMosnrk1rX0=";
32   };
34   nativeBuildInputs = [
35     hatchling
36     hatch-vcs
37   ];
39   propagatedBuildInputs = [
40     iso3166
41     pycountry
42   ];
44   passthru.optional-dependencies = {
45     pydantic = [
46       pydantic
47     ];
48   };
50   nativeCheckInputs = [
51     pytest-cov
52     pytestCheckHook
53   ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
55   pythonImportsCheck = [
56     "schwifty"
57   ];
59   meta = with lib; {
60     changelog = "https://github.com/mdomke/schwifty/blob/${version}/CHANGELOG.rst";
61     description = "Validate/generate IBANs and BICs";
62     homepage = "https://github.com/mdomke/schwifty";
63     license = licenses.mit;
64     maintainers = with maintainers; [ milibopp ];
65   };