nixpkgs/pkgs/development/python-modules/ansible-runner/default.nix
2019-04-24 18:42:48 +02:00

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.3";
src = fetchPypi {
inherit pname version;
sha256 = "2a2b83e63b830de3ff01c2992342cfe09f96e410953c85904ee7e301b21fa513";
};
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 ];
};
}