diff --git a/pkgs/development/python-modules/fabric/default.nix b/pkgs/development/python-modules/fabric/default.nix index 001abb7883a86..6da74bf387426 100644 --- a/pkgs/development/python-modules/fabric/default.nix +++ b/pkgs/development/python-modules/fabric/default.nix @@ -2,57 +2,53 @@ lib, buildPythonPackage, fetchPypi, - cryptography, + setuptools, decorator, + deprecated, invoke, mock, paramiko, pytestCheckHook, pytest-relaxed, + icecream, }: buildPythonPackage rec { pname = "fabric"; version = "3.2.2"; - format = "setuptools"; + pyproject = true; 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 decorator + deprecated ]; nativeCheckInputs = [ pytestCheckHook pytest-relaxed + icecream mock ]; - # ==================================== 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. + # distutils.errors.DistutilsArgError: no commands supplied doCheck = false; pythonImportsCheck = [ "fabric" ]; - meta = with lib; { + meta = { description = "Pythonic remote execution"; mainProgram = "fab"; homepage = "https://www.fabfile.org/"; - license = licenses.bsd2; + license = lib.licenses.bsd2; maintainers = [ ]; }; }