apache-airflow: 1.10.3 -> 1.10.5, enable python

Includes misc fixes suggested during the PR process.
This commit is contained in:
Ariel
2019-11-15 16:14:25 -05:00
parent effe7f8a09
commit 7af3a955c9
10 changed files with 84 additions and 115 deletions

View File

@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
}:
buildPythonPackage rec {
@@ -12,10 +13,15 @@ buildPythonPackage rec {
sha256 = "09898b6d427c08754e2a97c709cf2dfd7e28bd10c5683a538914975eab778d39";
};
postPatch = ''
substituteInPlace json_merge_patch/tests.py \
--replace "import lib as merge" "import json_merge_patch.lib as merge"
'';
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";
url = https://patch-diff.githubusercontent.com/raw/OpenDataServices/json-merge-patch/pull/1.patch;
sha256 = "1k6xsrxsmz03nwcqsf4gf0zsfnl2r20n83npic8z6bqlpl4lidl4";
})
];
meta = with lib; {
description = "JSON Merge Patch library";