linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / Fabric / default.nix
blob1025ed6a05ee001295c1253fe4dc26919ce28fc7
1 { lib, buildPythonPackage, fetchPypi
2 , cryptography
3 , invoke
4 , mock
5 , paramiko
6 , pytest
7 , pytest-relaxed
8 }:
10 buildPythonPackage rec {
11   pname = "fabric";
12   version = "2.5.0";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "19nzdibjfndzcwvby20p59igqwyzw7skrb45v2mxqsjma5yjv114";
17   };
19   propagatedBuildInputs = [ invoke paramiko cryptography ];
20   checkInputs = [ pytest mock pytest-relaxed ];
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" ];
30   meta = with lib; {
31     description = "Pythonic remote execution";
32     homepage    = "https://www.fabfile.org/";
33     license     = licenses.bsd2;
34     maintainers = [ maintainers.costrouc ];
35   };