1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, jsonpointer
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "jsonpatch";
11 version = "1.32";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "stefankoegl";
18 repo = "python-json-patch";
19 rev = "v${version}";
20 hash = "sha256-JMGBgYjnjHQ5JpzDwJcR2nVZfzmQ8ZZtcB0GsJ9Q4Jc=";
21 };
22
23 propagatedBuildInputs = [
24 jsonpointer
25 ];
26
27 checkInputs = [
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.bsd2; # "Modified BSD license, says pypi"
43 maintainers = with maintainers; [ ];
44 };
45}