diff options
Diffstat (limited to 'pkgs/development/python-modules/schwifty')
-rw-r--r-- | pkgs/development/python-modules/schwifty/default.nix | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/schwifty/default.nix b/pkgs/development/python-modules/schwifty/default.nix index 1498dd1bfdb1c..6a3c7d25f9cf1 100644 --- a/pkgs/development/python-modules/schwifty/default.nix +++ b/pkgs/development/python-modules/schwifty/default.nix @@ -1,60 +1,60 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, hatchling -, hatch-vcs + # build-system + hatchling, + hatch-vcs, -# dependencies -, iso3166 -, pycountry + # dependencies + importlib-resources, + iso3166, + pycountry, + rstr, -# optional-dependencies -, pydantic + # optional-dependencies + pydantic, -# tests -, pytestCheckHook -, pytest-cov -, pythonOlder + # tests + pytestCheckHook, + pytest-cov, + pythonOlder, }: buildPythonPackage rec { pname = "schwifty"; - version = "2024.4.0"; - format = "pyproject"; + version = "2024.6.1"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-1EV2oi2LBcjw2U7nKqdVUVDlFCzR8RqX5tVIciw1trg="; + hash = "sha256-32+YpDIXcgldwtxU5s9V6cong70EiyEgf9QCNYdEvp0="; }; - nativeBuildInputs = [ + build-system = [ hatchling hatch-vcs ]; - propagatedBuildInputs = [ + dependencies = [ iso3166 pycountry - ]; + rstr + ] ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ]; - passthru.optional-dependencies = { - pydantic = [ - pydantic - ]; + optional-dependencies = { + pydantic = [ pydantic ]; }; nativeCheckInputs = [ pytest-cov pytestCheckHook - ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (lib.attrValues optional-dependencies); - pythonImportsCheck = [ - "schwifty" - ]; + pythonImportsCheck = [ "schwifty" ]; meta = with lib; { changelog = "https://github.com/mdomke/schwifty/blob/${version}/CHANGELOG.rst"; |