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