nixpkgs/pkgs/development/python-modules/Fabric/default.nix

37 lines
840 B
Nix
Raw Normal View History

2019-08-21 01:06:15 +02:00
{ lib, buildPythonPackage, fetchPypi
, cryptography
, invoke
2019-08-21 01:06:15 +02:00
, mock
, paramiko
, pytest
, pytest-relaxed
}:
buildPythonPackage rec {
pname = "fabric";
2019-08-21 01:06:15 +02:00
version = "2.5.0";
src = fetchPypi {
inherit pname version;
2019-08-21 01:06:15 +02:00
sha256 = "19nzdibjfndzcwvby20p59igqwyzw7skrb45v2mxqsjma5yjv114";
};
propagatedBuildInputs = [ invoke paramiko cryptography ];
checkInputs = [ pytest mock pytest-relaxed ];
2020-08-17 00:44:02 +02:00
# requires pytest_relaxed, which doesnt have official support for pytest>=5
# https://github.com/bitprophet/pytest-relaxed/issues/12
doCheck = false;
checkPhase = ''
pytest tests
'';
2020-08-17 00:44:02 +02:00
pythonImportsCheck = [ "fabric" ];
2019-08-21 01:06:15 +02:00
meta = with lib; {
description = "Pythonic remote execution";
homepage = "https://www.fabfile.org/";
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}