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

45 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, invoke
, mock
, paramiko
, pytestCheckHook
, pytest-relaxed
}:
buildPythonPackage rec {
pname = "fabric";
version = "2.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "47f184b070272796fd2f9f0436799e18f2ccba4ee8ee587796fca192acd46cd2";
};
# only relevant to python < 3.4
postPatch = ''
substituteInPlace setup.py \
--replace ', "pathlib2"' ' '
'';
propagatedBuildInputs = [ invoke paramiko cryptography ];
checkInputs = [ pytestCheckHook pytest-relaxed mock ];
# ==================================== ERRORS ====================================
# ________________________ ERROR collecting test session _________________________
# Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent
# See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
doCheck = false;
pythonImportsCheck = [ "fabric" ];
meta = with lib; {
description = "Pythonic remote execution";
homepage = "https://www.fabfile.org/";
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}