2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, pytestCheckHook
|
|
|
|
, pdm-backend
|
|
|
|
, numpy
|
|
|
|
, setuptools
|
|
|
|
}:
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonconversion";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.0.1";
|
|
|
|
pyproject = true;
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DLR-RM";
|
|
|
|
repo = "python-jsonconversion";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-XmAQXu9YkkMUvpf/QVk4u1p8UyNfRb0NeoLxC1evCT4=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
pdm-backend
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRemoveDeps = [
|
|
|
|
"pytest-runner"
|
|
|
|
"pytest"
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
|
|
|
numpy
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"jsonconversion"
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This python module helps converting arbitrary Python objects into JSON strings and back";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/DLR-RM/python-jsonconversion";
|
2022-04-03 18:54:34 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.terlar ];
|
|
|
|
};
|
|
|
|
}
|