pythonPackages.json-merge-patch: init at 0.2

This commit is contained in:
Chris Ostrouchov 2019-07-18 16:41:35 -04:00 committed by Ariel
parent be91c2aa1b
commit 02bbcabecf
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "json-merge-patch";
version = "0.2";
src = fetchPypi {
inherit pname version;
sha256 = "09898b6d427c08754e2a97c709cf2dfd7e28bd10c5683a538914975eab778d39";
};
postPatch = ''
substituteInPlace json_merge_patch/tests.py \
--replace "import lib as merge" "import json_merge_patch.lib as merge"
'';
meta = with lib; {
description = "JSON Merge Patch library";
homepage = https://github.com/open-contracting/json-merge-patch;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -1976,6 +1976,8 @@ in {
jsonlines = callPackage ../development/python-modules/jsonlines { };
json-merge-patch = callPackage ../development/python-modules/json-merge-patch { };
jsonrpc-async = callPackage ../development/python-modules/jsonrpc-async { };
jsonrpc-base = callPackage ../development/python-modules/jsonrpc-base { };