2018-07-19 17:36:05 +01:00
|
|
|
{ lib
|
2019-03-19 16:38:55 +00:00
|
|
|
, bash
|
2018-07-19 17:36:05 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "invoke";
|
2020-06-06 07:47:14 +01:00
|
|
|
version = "1.4.1";
|
2018-07-19 17:36:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:14 +01:00
|
|
|
sha256 = "de3f23bfe669e3db1085789fd859eb8ca8e0c5d9c20811e2407fa042e8a5e15d";
|
2018-07-19 17:36:05 +01:00
|
|
|
};
|
|
|
|
|
2019-03-19 16:38:55 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's|/bin/bash|${bash}/bin/bash|g' -i invoke/config.py
|
|
|
|
'';
|
|
|
|
|
2018-07-19 17:36:05 +01:00
|
|
|
# errors with vendored libs
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-16 01:38:57 +01:00
|
|
|
# has vendored python2 code
|
|
|
|
dontUsePythonRecompileBytecode = true;
|
|
|
|
|
2018-07-19 17:36:05 +01:00
|
|
|
meta = {
|
|
|
|
description = "Pythonic task execution";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|