depot/third_party/nixpkgs/pkgs/development/python-modules/ansible-runner/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

48 lines
1,018 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, psutil
, pexpect
, python-daemon
, pyyaml
, six
, stdenv
, ansible
, pytest
, mock
}:
buildPythonPackage rec {
pname = "ansible-runner";
version = "1.4.7";
src = fetchPypi {
inherit pname version;
sha256 = "1bb56f9061c3238d89ec8871bc842f5b8d0e868f892347e8455c98d5b6fa58a1";
};
checkInputs = [ pytest mock ];
propagatedBuildInputs = [
ansible
psutil
pexpect
python-daemon
pyyaml
six
];
# test_process_isolation_settings is currently broken on Darwin Catalina
# https://github.com/ansible/ansible-runner/issues/413
checkPhase = ''
HOME=$TMPDIR pytest \
--ignore test/unit/test_runner.py \
-k "not prepare ${lib.optionalString stdenv.isDarwin "and not process_isolation_settings"}"
'';
meta = with lib; {
description = "Helps when interfacing with Ansible";
homepage = "https://github.com/ansible/ansible-runner";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}