blob: 77f77a7e47ad102e7f3814242de1245c7d9fb08e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
bash,
buildPythonPackage,
fetchPypi,
stdenv,
}:
buildPythonPackage rec {
pname = "invoke";
version = "2.2.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-UVv0m0pIkyt5sCRZA0jaIvOcSULf+ZGtH7i4uuob5wc=";
};
postPatch = ''
sed -e 's|/bin/bash|${bash}/bin/bash|g' -i invoke/config.py
'';
# errors with vendored libs
doCheck = false;
pythonImportsCheck = [ "invoke" ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
mkdir -p $out/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
$out/bin/inv --print-completion-script=zsh >$out/share/zsh/site-functions/_inv
$out/bin/inv --print-completion-script=bash >$out/share/bash-completion/completions/inv.bash
$out/bin/inv --print-completion-script=fish >$out/share/fish/vendor_completions.d/inv.fish
'';
meta = {
changelog = "https://www.pyinvoke.org/changelog.html";
description = "Pythonic task execution";
homepage = "https://www.pyinvoke.org/";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}
|