1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

python312Packages.fabric: enable tests (#353133)

This commit is contained in:
Fabian Affolter 2024-11-16 08:57:57 +01:00 committed by GitHub
commit 75cf14cba1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,58 +1,71 @@
{
lib,
buildPythonPackage,
fetchPypi,
cryptography,
decorator,
deprecated,
fetchPypi,
icecream,
invoke,
mock,
paramiko,
pytestCheckHook,
pytest-relaxed,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "fabric";
version = "3.2.2";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-h4PKQuOwB28IsmkBqsa52bHxnEEAdOesz6uQLBhP9KM=";
};
# only relevant to python < 3.4
postPatch = ''
substituteInPlace setup.py \
--replace ', "pathlib2"' ' '
'';
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
invoke
paramiko
cryptography
deprecated
decorator
];
nativeCheckInputs = [
pytestCheckHook
pytest-relaxed
icecream
mock
pytest-relaxed
pytestCheckHook
];
# ==================================== 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;
pytestFlagsArray = [ "tests/*.py" ];
pythonImportsCheck = [ "fabric" ];
meta = with lib; {
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"
];
meta = {
description = "Pythonic remote execution";
mainProgram = "fab";
homepage = "https://www.fabfile.org/";
license = licenses.bsd2;
changelog = "https://www.fabfile.org/changelog.html";
license = lib.licenses.bsd2;
maintainers = [ ];
mainProgram = "fab";
};
}