forked from mirrors/nixpkgs
a6534965e9
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-ansible-runner/versions
44 lines
782 B
Nix
44 lines
782 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, psutil
|
|
, pexpect
|
|
, python-daemon
|
|
, pyyaml
|
|
, six
|
|
, ansible
|
|
, pytest
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansible-runner";
|
|
version = "1.4.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1j3jisiy93026ivd28j0c3p2j7ij6zm2k765yjknfx2gg3m5pk14";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|