1{ pkgs
2, buildPythonPackage
3, fetchPypi
4, invoke
5, paramiko
6, cryptography
7, pytest
8, mock
9, pytest-relaxed
10}:
11
12buildPythonPackage rec {
13 pname = "fabric";
14 version = "2.4.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "93684ceaac92e0b78faae551297e29c48370cede12ff0f853cdebf67d4b87068";
19 };
20
21 propagatedBuildInputs = [ invoke paramiko cryptography ];
22 checkInputs = [ pytest mock pytest-relaxed ];
23
24 # ignore subprocess main errors (1) due to hardcoded /bin/bash
25 checkPhase = ''
26 rm tests/main.py
27 pytest tests
28 '';
29
30 meta = with pkgs.lib; {
31 description = "Pythonic remote execution";
32 homepage = https://www.fabfile.org/;
33 license = licenses.bsd2;
34 maintainers = [ maintainers.costrouc ];
35 };
36}