lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.fabric: enable tests

- refactor

+34 -21
+34 -21
pkgs/development/python-modules/fabric/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 + decorator, 5 + deprecated, 4 6 fetchPypi, 5 - cryptography, 6 - decorator, 7 + icecream, 7 8 invoke, 8 9 mock, 9 10 paramiko, 10 - pytestCheckHook, 11 11 pytest-relaxed, 12 + pytestCheckHook, 13 + pythonOlder, 14 + setuptools, 12 15 }: 13 16 14 17 buildPythonPackage rec { 15 18 pname = "fabric"; 16 19 version = "3.2.2"; 17 - format = "setuptools"; 20 + pyproject = true; 21 + 22 + disabled = pythonOlder "3.10"; 18 23 19 24 src = fetchPypi { 20 25 inherit pname version; 21 26 hash = "sha256-h4PKQuOwB28IsmkBqsa52bHxnEEAdOesz6uQLBhP9KM="; 22 27 }; 23 28 24 - # only relevant to python < 3.4 25 - postPatch = '' 26 - substituteInPlace setup.py \ 27 - --replace ', "pathlib2"' ' ' 28 - ''; 29 + build-system = [ setuptools ]; 29 30 30 - propagatedBuildInputs = [ 31 + dependencies = [ 31 32 invoke 32 33 paramiko 33 - cryptography 34 + deprecated 34 35 decorator 35 36 ]; 36 37 37 38 nativeCheckInputs = [ 38 - pytestCheckHook 39 + icecream 40 + mock 39 41 pytest-relaxed 40 - mock 42 + pytestCheckHook 41 43 ]; 42 44 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" ]; 48 46 49 47 pythonImportsCheck = [ "fabric" ]; 50 48 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 = { 52 64 description = "Pythonic remote execution"; 53 - mainProgram = "fab"; 54 65 homepage = "https://www.fabfile.org/"; 55 - license = licenses.bsd2; 66 + changelog = "https://www.fabfile.org/changelog.html"; 67 + license = lib.licenses.bsd2; 56 68 maintainers = [ ]; 69 + mainProgram = "fab"; 57 70 }; 58 71 }