Files
nixpkgs/pkgs/development/python-modules/fabric/default.nix
2026-11-04 18:06:26 +00:00

93 lines
2.0 KiB
Nix

{
lib,
buildPythonPackage,
decorator,
deprecated,
fetchFromGitHub,
fetchpatch,
icecream,
invoke,
mock,
paramiko,
pytest-relaxed,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "fabric";
version = "3.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "fabric";
repo = "fabric";
tag = version;
hash = "sha256-GbZQ6rFKQyJZXYfe9b4j6yjKgAB0ct8AD1xYG0yGZl8=";
};
patches = [
# Support invoke >= 3 (merged upstream but not released yet)
# https://github.com/fabric/fabric/issues/2376
(fetchpatch {
name = "invoke-3-support.patch";
url = "https://github.com/fabric/fabric/commit/7fa309db9dd5dac69079c1fb83b6f579555f7d53.patch";
hash = "sha256-HxdV1XbsytBYOHV8WqcpKMpqGRkbXD/UlmAFSrmsFTg=";
})
];
build-system = [ setuptools ];
pythonRelaxDeps = [ "invoke" ];
dependencies = [
invoke
paramiko
deprecated
decorator
];
nativeCheckInputs = [
icecream
mock
pytest-relaxed
pytestCheckHook
];
enabledTestPaths = [ "tests/*.py" ];
pythonImportsCheck = [ "fabric" ];
disabledTests = [
# Tests are out-dated
"calls_RemoteShell_run_with_all_kwargs_and_returns_its_result"
"executes_arguments_on_contents_run_via_threading"
"expect"
"from_v1"
"honors_config_system_for_allowed_kwargs"
"llows_disabling_remote_mode_preservation"
"load"
"preserves_remote_mode_by_default"
"proxy_jump"
"raises_TypeError_for_disallowed_kwargs"
# Assertion failures on mocks
# https://github.com/fabric/fabric/issues/2341
"client_defaults_to_a_new_SSHClient"
"defaults_to_auto_add"
# Fixture "fake_agent" called directly. Fixtures are not meant to be called directly
"no_stdin"
"fake_agent"
"fake"
];
meta = {
description = "Pythonic remote execution";
homepage = "https://www.fabfile.org/";
changelog = "https://www.fabfile.org/changelog.html";
license = lib.licenses.bsd2;
maintainers = [ ];
mainProgram = "fab";
};
}