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