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