2018-07-19 16:36:05 +00:00
|
|
|
{ lib
|
2019-03-19 16:38:55 +00:00
|
|
|
, bash
|
2018-07-19 16:36:05 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-03-20 18:10:03 +00:00
|
|
|
, pythonOlder
|
2018-07-19 16:36:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "invoke";
|
2022-05-12 08:06:53 +00:00
|
|
|
version = "1.7.1";
|
2022-03-20 18:10:03 +00:00
|
|
|
format = "setuptools";
|
2022-03-20 18:12:35 +00:00
|
|
|
|
2018-07-19 16:36:05 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-12 08:06:53 +00:00
|
|
|
hash = "sha256-e23q9YXu4KhIIF0LjAAUub9vKHqOt5iBimQt/x3xSxk=";
|
2018-07-19 16:36:05 +00:00
|
|
|
};
|
|
|
|
|
2022-05-12 08:06:53 +00:00
|
|
|
postPatch = ''
|
2019-03-19 16:38:55 +00:00
|
|
|
sed -e 's|/bin/bash|${bash}/bin/bash|g' -i invoke/config.py
|
|
|
|
'';
|
|
|
|
|
2018-07-19 16:36:05 +00:00
|
|
|
# errors with vendored libs
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-03-20 18:10:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"invoke"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-07-19 16:36:05 +00:00
|
|
|
description = "Pythonic task execution";
|
2022-03-20 18:10:03 +00:00
|
|
|
homepage = "https://www.pyinvoke.org/";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ ];
|
2018-07-19 16:36:05 +00:00
|
|
|
};
|
|
|
|
}
|