2021-08-27 11:40:30 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-08-21 01:06:15 +02:00
|
|
|
, cryptography
|
2018-10-10 20:27:51 +02:00
|
|
|
, invoke
|
2019-08-21 01:06:15 +02:00
|
|
|
, mock
|
2018-10-10 20:27:51 +02:00
|
|
|
, paramiko
|
2021-08-27 11:40:30 +02:00
|
|
|
, pytestCheckHook
|
2018-10-10 20:27:51 +02:00
|
|
|
, pytest-relaxed
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fabric";
|
2021-03-24 10:28:11 +01:00
|
|
|
version = "2.6.0";
|
2018-10-10 20:27:51 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 10:28:11 +01:00
|
|
|
sha256 = "47f184b070272796fd2f9f0436799e18f2ccba4ee8ee587796fca192acd46cd2";
|
2018-10-10 20:27:51 +02:00
|
|
|
};
|
|
|
|
|
2021-03-24 19:16:05 +01:00
|
|
|
# only relevant to python < 3.4
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace ', "pathlib2"' ' '
|
|
|
|
'';
|
|
|
|
|
2018-10-10 20:27:51 +02:00
|
|
|
propagatedBuildInputs = [ invoke paramiko cryptography ];
|
|
|
|
|
2021-08-27 11:40:30 +02:00
|
|
|
checkInputs = [ pytestCheckHook pytest-relaxed 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.
|
2020-08-17 00:44:02 +02:00
|
|
|
doCheck = false;
|
2021-08-27 11:40:30 +02:00
|
|
|
|
2020-08-17 00:44:02 +02:00
|
|
|
pythonImportsCheck = [ "fabric" ];
|
2018-10-10 20:27:51 +02:00
|
|
|
|
2019-08-21 01:06:15 +02:00
|
|
|
meta = with lib; {
|
2018-10-10 20:27:51 +02:00
|
|
|
description = "Pythonic remote execution";
|
2021-08-27 11:40:30 +02:00
|
|
|
homepage = "https://www.fabfile.org/";
|
|
|
|
license = licenses.bsd2;
|
2018-10-10 20:27:51 +02:00
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|