Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonAtLeast, 6 7 # build-system 8 setuptools, 9 setuptools-scm, 10 11 # tests 12 pytestCheckHook, 13}: 14 15buildPythonPackage rec { 16 pname = "jsonpickle"; 17 version = "3.2.1"; 18 pyproject = true; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-S212QJdBmfes+QNSlTZbWhpxqREJ7/oVuhcPu0jPhxw="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 preCheck = '' 31 rm pytest.ini 32 ''; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 disabledTests = lib.optionals (pythonAtLeast "3.12") [ 37 # imports distutils 38 "test_thing_with_submodule" 39 ]; 40 41 meta = with lib; { 42 description = "Python library for serializing any arbitrary object graph into JSON"; 43 downloadPage = "https://github.com/jsonpickle/jsonpickle"; 44 homepage = "http://jsonpickle.github.io/"; 45 license = licenses.bsd3; 46 }; 47}