diff --git a/pkgs/development/python-modules/fabric/default.nix b/pkgs/development/python-modules/fabric/default.nix index 001abb7883a8..173a596f0c89 100644 --- a/pkgs/development/python-modules/fabric/default.nix +++ b/pkgs/development/python-modules/fabric/default.nix @@ -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"; }; }