1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fetchpatch,
6}:
7
8buildPythonPackage rec {
9 pname = "json-merge-patch";
10 version = "0.2";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "09898b6d427c08754e2a97c709cf2dfd7e28bd10c5683a538914975eab778d39";
16 };
17
18 patches = [
19 # This prevented tests from running (was using a relative import)
20 # https://github.com/OpenDataServices/json-merge-patch/pull/1
21 (fetchpatch {
22 name = "fully-qualified-json-merge-patch-import-on-tests";
23 url = "https://patch-diff.githubusercontent.com/raw/OpenDataServices/json-merge-patch/pull/1.patch";
24 sha256 = "1k6xsrxsmz03nwcqsf4gf0zsfnl2r20n83npic8z6bqlpl4lidl4";
25 })
26 ];
27
28 meta = with lib; {
29 description = "JSON Merge Patch library";
30 mainProgram = "json-merge-patch";
31 homepage = "https://github.com/open-contracting/json-merge-patch";
32 license = licenses.bsd3;
33 maintainers = [ ];
34 };
35}