1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 jsonpointer, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "jsonpatch"; 12 version = "1.33"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "stefankoegl"; 19 repo = "python-json-patch"; 20 tag = "v${version}"; 21 hash = "sha256-JHBB64LExzHQVoFF2xcsqGlNWX/YeEBa1M/TmfeQLWI="; 22 }; 23 24 propagatedBuildInputs = [ jsonpointer ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "jsonpatch" ]; 29 30 enabledTestPaths = [ "tests.py" ]; 31 32 meta = with lib; { 33 description = "Library to apply JSON Patches according to RFC 6902"; 34 homepage = "https://github.com/stefankoegl/python-json-patch"; 35 license = licenses.bsd3; 36 maintainers = [ ]; 37 }; 38}