1{ lib, buildPythonPackage, fetchPypi
2, cryptography
3, invoke
4, mock
5, paramiko
6, pytest
7, pytest-relaxed
8}:
9
10buildPythonPackage rec {
11 pname = "fabric";
12 version = "2.5.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "19nzdibjfndzcwvby20p59igqwyzw7skrb45v2mxqsjma5yjv114";
17 };
18
19 propagatedBuildInputs = [ invoke paramiko cryptography ];
20 checkInputs = [ pytest mock pytest-relaxed ];
21
22 # requires pytest_relaxed, which doesnt have official support for pytest>=5
23 # https://github.com/bitprophet/pytest-relaxed/issues/12
24 doCheck = false;
25 checkPhase = ''
26 pytest tests
27 '';
28 pythonImportsCheck = [ "fabric" ];
29
30 meta = with lib; {
31 description = "Pythonic remote execution";
32 homepage = "https://www.fabfile.org/";
33 license = licenses.bsd2;
34 maintainers = [ maintainers.costrouc ];
35 };
36}