Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.jsonconversion: relax numpy #373057

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ];
};
}