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