about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-ansible
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-10 19:31:31 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2018-10-13 09:53:36 +0200
commit1533099b9f95ae71d332597536dfb069cc374d5d (patch)
tree3d25682a83fd85018cd2c128bfe770cd8bea225c /pkgs/development/python-modules/pytest-ansible
parent648acbabcae11bef8c82e60a517bed5ed8fa192d (diff)
pythonPackages.pytest-ansible: init at 2.0.1
Diffstat (limited to 'pkgs/development/python-modules/pytest-ansible')
-rw-r--r--pkgs/development/python-modules/pytest-ansible/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-ansible/default.nix b/pkgs/development/python-modules/pytest-ansible/default.nix
new file mode 100644
index 0000000000000..09d8aa40e1976
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-ansible/default.nix
@@ -0,0 +1,42 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, ansible
+, pytest
+, mock
+, isPy3k
+}:
+
+buildPythonPackage rec {
+  version = "2.0.1";
+  pname = "pytest-ansible";
+  disabled = isPy3k;
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "553f2bc9e64f8c871ad29b7d5c100f6e549fe85db26bd1ff5dda8b769bb38a3e";
+  };
+
+  patchPhase = ''
+    sed -i "s/'setuptools-markdown'//g" setup.py
+  '';
+
+  # requires pandoc < 2.0
+  # buildInputs = [ setuptools-markdown ];
+  checkInputs =  [ mock ];
+  propagatedBuildInputs = [ ansible pytest ];
+
+  # tests not included with release
+  doCheck = false;
+
+  checkPhase = ''
+    pytest tests
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://github.com/jlaska/pytest-ansible;
+    description = "Plugin for py.test to simplify calling ansible modules from tests or fixtures";
+    license = licenses.mit;
+    maintainers = [ maintainers.costrouc ];
+  };
+}