1{ lib
2, buildPythonPackage
3, fetchPypi
4, cryptography
5, invoke
6, mock
7, paramiko
8, pytestCheckHook
9, pytest-relaxed
10}:
11
12buildPythonPackage rec {
13 pname = "fabric";
14 version = "3.0.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-v+lgwa6QTnYkr51ArVubmVge2cT9CTScDQK3SG4dD4k=";
19 };
20
21 # only relevant to python < 3.4
22 postPatch = ''
23 substituteInPlace setup.py \
24 --replace ', "pathlib2"' ' '
25 '';
26
27 propagatedBuildInputs = [ invoke paramiko cryptography ];
28
29 nativeCheckInputs = [ pytestCheckHook pytest-relaxed mock ];
30
31 # ==================================== ERRORS ====================================
32 # ________________________ ERROR collecting test session _________________________
33 # Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent
34 # See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
35 doCheck = false;
36
37 pythonImportsCheck = [ "fabric" ];
38
39 meta = with lib; {
40 description = "Pythonic remote execution";
41 homepage = "https://www.fabfile.org/";
42 license = licenses.bsd2;
43 maintainers = [ maintainers.costrouc ];
44 };
45}