summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible-runner
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-02-24 17:06:53 -0500
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2019-03-01 14:47:01 -0500
commit9c976878c69c2e94b1996484e7025d4ddda7b045 (patch)
tree88db2cf48acf135810e965de87f953d96c599ab3 /pkgs/development/python-modules/ansible-runner
parent5c4a829a340aec6f44b040452391fc837218ba1f (diff)
downloadnixpkgs-9c976878c69c2e94b1996484e7025d4ddda7b045.tar
nixpkgs-9c976878c69c2e94b1996484e7025d4ddda7b045.tar.gz
nixpkgs-9c976878c69c2e94b1996484e7025d4ddda7b045.tar.bz2
nixpkgs-9c976878c69c2e94b1996484e7025d4ddda7b045.tar.lz
nixpkgs-9c976878c69c2e94b1996484e7025d4ddda7b045.tar.xz
nixpkgs-9c976878c69c2e94b1996484e7025d4ddda7b045.tar.zst
nixpkgs-9c976878c69c2e94b1996484e7025d4ddda7b045.zip
pythonPackages.ansible-runner: init at 1.2.0
Diffstat (limited to 'pkgs/development/python-modules/ansible-runner')
-rw-r--r--pkgs/development/python-modules/ansible-runner/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ansible-runner/default.nix b/pkgs/development/python-modules/ansible-runner/default.nix
new file mode 100644
index 00000000000..fbe9589478c
--- /dev/null
+++ b/pkgs/development/python-modules/ansible-runner/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, psutil
+, pexpect
+, python-daemon
+, pyyaml
+, six
+, ansible
+, pytest
+, mock
+}:
+
+buildPythonPackage rec {
+  pname = "ansible-runner";
+  version = "1.2.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "9c2fc02bd22ac831138bfd2241e1664d7700bbb2c61f96b8b1f2d83ab4ea59a7";
+  };
+
+  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 ];
+  };
+}