Skip to content

Commit 06075b4

Browse files
committed
python312Packages.fabric: enable tests
- refactor
1 parent 2b2a853 commit 06075b4

File tree

1 file changed

+34
-21
lines changed

1 file changed

+34
-21
lines changed
Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,71 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
5-
cryptography,
64
decorator,
5+
deprecated,
6+
fetchPypi,
7+
icecream,
78
invoke,
89
mock,
910
paramiko,
10-
pytestCheckHook,
1111
pytest-relaxed,
12+
pytestCheckHook,
13+
pythonOlder,
14+
setuptools,
1215
}:
1316

1417
buildPythonPackage rec {
1518
pname = "fabric";
1619
version = "3.2.2";
17-
format = "setuptools";
20+
pyproject = true;
21+
22+
disabled = pythonOlder "3.10";
1823

1924
src = fetchPypi {
2025
inherit pname version;
2126
hash = "sha256-h4PKQuOwB28IsmkBqsa52bHxnEEAdOesz6uQLBhP9KM=";
2227
};
2328

24-
# only relevant to python < 3.4
25-
postPatch = ''
26-
substituteInPlace setup.py \
27-
--replace ', "pathlib2"' ' '
28-
'';
29+
build-system = [ setuptools ];
2930

30-
propagatedBuildInputs = [
31+
dependencies = [
3132
invoke
3233
paramiko
33-
cryptography
34+
deprecated
3435
decorator
3536
];
3637

3738
nativeCheckInputs = [
38-
pytestCheckHook
39-
pytest-relaxed
39+
icecream
4040
mock
41+
pytest-relaxed
42+
pytestCheckHook
4143
];
4244

43-
# ==================================== ERRORS ====================================
44-
# ________________________ ERROR collecting test session _________________________
45-
# Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent
46-
# See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
47-
doCheck = false;
45+
pytestFlagsArray = [ "tests/*.py" ];
4846

4947
pythonImportsCheck = [ "fabric" ];
5048

51-
meta = with lib; {
49+
disabledTests = [
50+
# Tests are out-dated
51+
"calls_RemoteShell_run_with_all_kwargs_and_returns_its_result"
52+
"executes_arguments_on_contents_run_via_threading"
53+
"expect"
54+
"from_v1"
55+
"honors_config_system_for_allowed_kwargs"
56+
"llows_disabling_remote_mode_preservation"
57+
"load"
58+
"preserves_remote_mode_by_default"
59+
"proxy_jump"
60+
"raises_TypeError_for_disallowed_kwargs"
61+
];
62+
63+
meta = {
5264
description = "Pythonic remote execution";
53-
mainProgram = "fab";
5465
homepage = "https://www.fabfile.org/";
55-
license = licenses.bsd2;
66+
changelog = "https://www.fabfile.org/changelog.html";
67+
license = lib.licenses.bsd2;
5668
maintainers = [ ];
69+
mainProgram = "fab";
5770
};
5871
}

0 commit comments

Comments
 (0)