depot/third_party/nixpkgs/pkgs/development/python-modules/fabric/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

45 lines
1.1 KiB
Nix

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