Skip to content

Commit

Permalink
python312Package.fabric: modernize and fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
pluiedev committed Nov 10, 2024
1 parent 508c83a commit e0bc00d
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions pkgs/development/python-modules/fabric/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [ ];
};
}

0 comments on commit e0bc00d

Please sign in to comment.