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