depot/third_party/nixpkgs/pkgs/development/python-modules/invoke/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

35 lines
644 B
Nix

{ lib
, bash
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "invoke";
version = "1.7.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-e23q9YXu4KhIIF0LjAAUub9vKHqOt5iBimQt/x3xSxk=";
};
postPatch = ''
sed -e 's|/bin/bash|${bash}/bin/bash|g' -i invoke/config.py
'';
# errors with vendored libs
doCheck = false;
pythonImportsCheck = [
"invoke"
];
meta = with lib; {
description = "Pythonic task execution";
homepage = "https://www.pyinvoke.org/";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
};
}