diff options
Diffstat (limited to 'pkgs/development/python-modules/schwifty/default.nix')
-rw-r--r-- | pkgs/development/python-modules/schwifty/default.nix | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/pkgs/development/python-modules/schwifty/default.nix b/pkgs/development/python-modules/schwifty/default.nix index 1a33c71f7ff5f..a3b5467b70d76 100644 --- a/pkgs/development/python-modules/schwifty/default.nix +++ b/pkgs/development/python-modules/schwifty/default.nix @@ -1,34 +1,36 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, hatchling -, hatch-vcs + # build-system + hatchling, + hatch-vcs, -# dependencies -, iso3166 -, pycountry + # dependencies + importlib-resources, + iso3166, + pycountry, -# optional-dependencies -, pydantic + # optional-dependencies + pydantic, -# tests -, pytestCheckHook -, pytest-cov -, pythonOlder + # tests + pytestCheckHook, + pytest-cov, + pythonOlder, }: buildPythonPackage rec { pname = "schwifty"; - version = "2024.1.1.post0"; - format = "pyproject"; + version = "2024.4.0"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-ZFDu+stuKdsVc8bTuSZ4LZX8BuQhORjyEMosnrk1rX0="; + hash = "sha256-1EV2oi2LBcjw2U7nKqdVUVDlFCzR8RqX5tVIciw1trg="; }; nativeBuildInputs = [ @@ -39,12 +41,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ iso3166 pycountry - ]; + ] ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ]; passthru.optional-dependencies = { - pydantic = [ - pydantic - ]; + pydantic = [ pydantic ]; }; nativeCheckInputs = [ @@ -52,9 +52,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "schwifty" - ]; + pythonImportsCheck = [ "schwifty" ]; meta = with lib; { changelog = "https://github.com/mdomke/schwifty/blob/${version}/CHANGELOG.rst"; |