2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, cryptography
|
2023-10-09 19:29:22 +00:00
|
|
|
, decorator
|
2020-04-24 23:36:52 +00:00
|
|
|
, invoke
|
|
|
|
, mock
|
|
|
|
, paramiko
|
2021-09-18 10:52:07 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-relaxed
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fabric";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.2.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-h4PKQuOwB28IsmkBqsa52bHxnEEAdOesz6uQLBhP9KM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
# only relevant to python < 3.4
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace ', "pathlib2"' ' '
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
propagatedBuildInputs = [ invoke paramiko cryptography decorator ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook pytest-relaxed mock ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
# ==================================== 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.
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = false;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "fabric" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pythonic remote execution";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://www.fabfile.org/";
|
|
|
|
license = licenses.bsd2;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|