depot/third_party/nixpkgs/pkgs/development/python-modules/invoke/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

30 lines
558 B
Nix

{ lib
, bash
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "invoke";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "de3f23bfe669e3db1085789fd859eb8ca8e0c5d9c20811e2407fa042e8a5e15d";
};
patchPhase = ''
sed -e 's|/bin/bash|${bash}/bin/bash|g' -i invoke/config.py
'';
# errors with vendored libs
doCheck = false;
# has vendored python2 code
dontUsePythonRecompileBytecode = true;
meta = {
description = "Pythonic task execution";
license = lib.licenses.bsd2;
};
}