2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, colorama
|
|
|
|
, configparser
|
|
|
|
, distro
|
2022-05-18 14:49:53 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gevent
|
2022-03-30 09:31:56 +00:00
|
|
|
, jinja2
|
|
|
|
, paramiko
|
2022-05-18 14:49:53 +00:00
|
|
|
, pytestCheckHook
|
2022-03-30 09:31:56 +00:00
|
|
|
, python-dateutil
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2022-03-30 09:31:56 +00:00
|
|
|
, pywinrm
|
2022-05-18 14:49:53 +00:00
|
|
|
, pyyaml
|
2022-03-30 09:31:56 +00:00
|
|
|
, setuptools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyinfra";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "2.6.1";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Fizzadar";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-TpO91YVWswcdpV4z9jkxBELwsIIGvlpL3URQTjAAkUs=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
colorama
|
|
|
|
configparser
|
|
|
|
distro
|
|
|
|
gevent
|
|
|
|
jinja2
|
|
|
|
paramiko
|
|
|
|
python-dateutil
|
|
|
|
pywinrm
|
2022-05-18 14:49:53 +00:00
|
|
|
pyyaml
|
2022-03-30 09:31:56 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyinfra"
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test requires SSH binary
|
|
|
|
"test_load_ssh_config"
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python-based infrastructure automation";
|
|
|
|
longDescription = ''
|
|
|
|
pyinfra automates/provisions/manages/deploys infrastructure. It can be used for
|
|
|
|
ad-hoc command execution, service deployment, configuration management and more.
|
|
|
|
'';
|
2023-01-11 07:51:40 +00:00
|
|
|
homepage = "https://pyinfra.com";
|
|
|
|
downloadPage = "https://pyinfra.com/Fizzadar/pyinfra/releases";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/Fizzadar/pyinfra/blob/v${version}/CHANGELOG.md";
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ totoroot ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|