Skip to content

Commit

Permalink
python312Packages.jsonconversion: relax numpy (#373057)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao authored Jan 14, 2025
2 parents ceb3b6f + 66de219 commit 4588062
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions pkgs/development/python-modules/jsonconversion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pdm-backend,
numpy,
pdm-backend,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools,
}:

Expand All @@ -13,22 +15,24 @@ buildPythonPackage rec {
version = "1.0.1";
pyproject = true;

disabled = pythonOlder "3.11";

src = fetchFromGitHub {
owner = "DLR-RM";
repo = "python-jsonconversion";
tag = version;
hash = "sha256-XmAQXu9YkkMUvpf/QVk4u1p8UyNfRb0NeoLxC1evCT4=";
};

build-system = [
pdm-backend
];
build-system = [ pdm-backend ];

pythonRemoveDeps = [
"pytest-runner"
"pytest"
];

pythonRelaxDeps = [ "numpy" ];

dependencies = [
numpy
setuptools
Expand All @@ -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 ];
};
}

0 comments on commit 4588062

Please sign in to comment.