nixpkgs-suyu/pkgs/development/python-modules/invoke/default.nix
Jonathan Ringer 385cfde32f python3Packages.invoke: don't recompile bytecode
Has vendored code, a given .py might not be compatible
2020-06-16 17:55:59 +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;
};
}