44 lines
794 B
Nix
44 lines
794 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, psutil
|
|
, pexpect
|
|
, python-daemon
|
|
, pyyaml
|
|
, six
|
|
, ansible
|
|
, pytest
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansible-runner";
|
|
version = "1.3.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6e4d8256351228c00fe68697e7f5ad2a2e0fd4085084b913eda22735023bb891";
|
|
};
|
|
|
|
checkInputs = [ pytest mock ];
|
|
propagatedBuildInputs = [
|
|
ansible
|
|
psutil
|
|
pexpect
|
|
python-daemon
|
|
pyyaml
|
|
six
|
|
];
|
|
|
|
checkPhase = ''
|
|
HOME=$(mktemp -d) pytest --ignore test/unit/test_runner.py -k "not test_prepare"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Helps when interfacing with Ansible";
|
|
homepage = https://github.com/ansible/ansible-runner;
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|