2019-07-18 16:41:35 -04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2019-11-15 16:14:25 -05:00
|
|
|
fetchpatch,
|
2019-07-18 16:41:35 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "json-merge-patch";
|
|
|
|
version = "0.2";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2019-07-18 16:41:35 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "09898b6d427c08754e2a97c709cf2dfd7e28bd10c5683a538914975eab778d39";
|
|
|
|
};
|
|
|
|
|
2019-11-15 16:14:25 -05:00
|
|
|
patches = [
|
|
|
|
# This prevented tests from running (was using a relative import)
|
|
|
|
# https://github.com/OpenDataServices/json-merge-patch/pull/1
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fully-qualified-json-merge-patch-import-on-tests";
|
2020-03-31 21:11:51 -04:00
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/OpenDataServices/json-merge-patch/pull/1.patch";
|
2019-11-15 16:14:25 -05:00
|
|
|
sha256 = "1k6xsrxsmz03nwcqsf4gf0zsfnl2r20n83npic8z6bqlpl4lidl4";
|
|
|
|
})
|
|
|
|
];
|
2019-07-18 16:41:35 -04:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JSON Merge Patch library";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "json-merge-patch";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/open-contracting/json-merge-patch";
|
2019-07-18 16:41:35 -04:00
|
|
|
license = licenses.bsd3;
|
2023-06-30 17:53:25 +02:00
|
|
|
maintainers = [ ];
|
2019-07-18 16:41:35 -04:00
|
|
|
};
|
|
|
|
}
|