55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
numpy,
|
|
pdm-backend,
|
|
pytestCheckHook,
|
|
pythonAtLeast,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonconversion";
|
|
version = "1.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DLR-RM";
|
|
repo = "python-jsonconversion";
|
|
tag = version;
|
|
hash = "sha256-OOp5oHAb00AN+5tlLeUzily1MKHDIbn0qg3jzkZ0vAo=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
pythonRemoveDeps = [
|
|
"pytest-runner"
|
|
"pytest"
|
|
];
|
|
|
|
pythonRelaxDeps = [ "numpy" ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
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 = with maintainers; [ terlar ];
|
|
};
|
|
}
|