diff --git a/pkgs/development/python-modules/jsonconversion/default.nix b/pkgs/development/python-modules/jsonconversion/default.nix index 3dc4df890e424..50bda6d368657 100644 --- a/pkgs/development/python-modules/jsonconversion/default.nix +++ b/pkgs/development/python-modules/jsonconversion/default.nix @@ -2,9 +2,11 @@ lib, buildPythonPackage, fetchFromGitHub, - pytestCheckHook, - pdm-backend, numpy, + pdm-backend, + pytestCheckHook, + pythonAtLeast, + pythonOlder, setuptools, }: @@ -13,6 +15,8 @@ buildPythonPackage rec { version = "1.0.1"; pyproject = true; + disabled = pythonOlder "3.11"; + src = fetchFromGitHub { owner = "DLR-RM"; repo = "python-jsonconversion"; @@ -20,15 +24,15 @@ buildPythonPackage rec { hash = "sha256-XmAQXu9YkkMUvpf/QVk4u1p8UyNfRb0NeoLxC1evCT4="; }; - build-system = [ - pdm-backend - ]; + build-system = [ pdm-backend ]; pythonRemoveDeps = [ "pytest-runner" "pytest" ]; + pythonRelaxDeps = [ "numpy" ]; + dependencies = [ numpy setuptools @@ -38,10 +42,13 @@ buildPythonPackage rec { pythonImportsCheck = [ "jsonconversion" ]; + disabledTests = lib.optionals (pythonAtLeast "3.13") [ "test_dict" ]; + meta = with lib; { description = "This python module helps converting arbitrary Python objects into JSON strings and back"; homepage = "https://github.com/DLR-RM/python-jsonconversion"; + changelog = "https://github.com/DLR-RM/python-jsonconversion/releases/tag/${version}"; license = licenses.bsd2; - maintainers = [ maintainers.terlar ]; + maintainers = with maintainers; [ terlar ]; }; }