2019-08-21 00:06:15 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, cryptography
|
2018-10-10 19:27:51 +01:00
|
|
|
, invoke
|
2019-08-21 00:06:15 +01:00
|
|
|
, mock
|
2018-10-10 19:27:51 +01:00
|
|
|
, paramiko
|
|
|
|
, pytest
|
|
|
|
, pytest-relaxed
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fabric";
|
2021-03-24 09:28:11 +00:00
|
|
|
version = "2.6.0";
|
2018-10-10 19:27:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:11 +00:00
|
|
|
sha256 = "47f184b070272796fd2f9f0436799e18f2ccba4ee8ee587796fca192acd46cd2";
|
2018-10-10 19:27:51 +01:00
|
|
|
};
|
|
|
|
|
2021-03-24 18:16:05 +00:00
|
|
|
# only relevant to python < 3.4
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace ', "pathlib2"' ' '
|
|
|
|
'';
|
|
|
|
|
2018-10-10 19:27:51 +01:00
|
|
|
propagatedBuildInputs = [ invoke paramiko cryptography ];
|
|
|
|
checkInputs = [ pytest mock pytest-relaxed ];
|
|
|
|
|
2020-08-16 23:44:02 +01:00
|
|
|
# requires pytest_relaxed, which doesnt have official support for pytest>=5
|
|
|
|
# https://github.com/bitprophet/pytest-relaxed/issues/12
|
|
|
|
doCheck = false;
|
2018-10-10 19:27:51 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
2020-08-16 23:44:02 +01:00
|
|
|
pythonImportsCheck = [ "fabric" ];
|
2018-10-10 19:27:51 +01:00
|
|
|
|
2019-08-21 00:06:15 +01:00
|
|
|
meta = with lib; {
|
2018-10-10 19:27:51 +01:00
|
|
|
description = "Pythonic remote execution";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.fabfile.org/";
|
2018-10-10 19:27:51 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|