blob: 31187551459b9cc51bf4da91feb55507a5726026 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pdm-backend,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonconversion";
version = "1.2.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "DLR-RM";
repo = "python-jsonconversion";
tag = version;
hash = "sha256-yWRpILAkwCvgh5bMiN9/XmS6U9zIQdDS8KVeTYxzDDw=";
};
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 = {
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 = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ terlar ];
};
}
|