nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, bash
3, buildPythonPackage
4, fetchPypi
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "invoke";
10 version = "1.7.1";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-e23q9YXu4KhIIF0LjAAUub9vKHqOt5iBimQt/x3xSxk=";
16 };
17
18 postPatch = ''
19 sed -e 's|/bin/bash|${bash}/bin/bash|g' -i invoke/config.py
20 '';
21
22 # errors with vendored libs
23 doCheck = false;
24
25 pythonImportsCheck = [
26 "invoke"
27 ];
28
29 meta = with lib; {
30 description = "Pythonic task execution";
31 homepage = "https://www.pyinvoke.org/";
32 license = licenses.bsd2;
33 maintainers = with maintainers; [ ];
34 };
35}