1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonRelaxDepsHook, 6 pytestCheckHook, 7 pdm-backend, 8 numpy, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "jsonconversion"; 14 version = "1.0.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "DLR-RM"; 19 repo = "python-jsonconversion"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-XmAQXu9YkkMUvpf/QVk4u1p8UyNfRb0NeoLxC1evCT4="; 22 }; 23 24 build-system = [ 25 pdm-backend 26 pythonRelaxDepsHook 27 ]; 28 29 pythonRemoveDeps = [ 30 "pytest-runner" 31 "pytest" 32 ]; 33 34 dependencies = [ 35 numpy 36 setuptools 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "jsonconversion" ]; 42 43 meta = with lib; { 44 description = "This python module helps converting arbitrary Python objects into JSON strings and back"; 45 homepage = "https://github.com/DLR-RM/python-jsonconversion"; 46 license = licenses.bsd2; 47 maintainers = [ maintainers.terlar ]; 48 }; 49}