nixpkgs/pkgs/development/python-modules/fabric/default.nix
Lily Foster edadc930b4
python310Packages.fabric: 3.0.0 -> 3.2.2
Add missing decorator dep that was originally included in invoke, but
with the 2.2.0 invoke update it stopped vendoring it. Fabric started
requiring it as a separate dep with 3.1.0.
2023-09-17 10:34:41 -04:00

47 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, decorator
, invoke
, mock
, paramiko
, pytestCheckHook
, pytest-relaxed
}:
buildPythonPackage rec {
pname = "fabric";
version = "3.2.2";
src = fetchPypi {
inherit pname version;
hash = "sha256-h4PKQuOwB28IsmkBqsa52bHxnEEAdOesz6uQLBhP9KM=";
};
# only relevant to python < 3.4
postPatch = ''
substituteInPlace setup.py \
--replace ', "pathlib2"' ' '
'';
propagatedBuildInputs = [ invoke paramiko cryptography decorator ];
nativeCheckInputs = [ 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 = [ ];
};
}