1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, ansible
5, pytest
6, mock
7, isPy3k
8}:
9
10buildPythonPackage rec {
11 version = "2.0.2";
12 pname = "pytest-ansible";
13 disabled = isPy3k;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "d69d89cbcf29e587cbe6ec4b229346edbf027d3c04944dd7bcbf3d7bba46348f";
18 };
19
20 patchPhase = ''
21 sed -i "s/'setuptools-markdown'//g" setup.py
22 '';
23
24 # requires pandoc < 2.0
25 # buildInputs = [ setuptools-markdown ];
26 checkInputs = [ mock ];
27 propagatedBuildInputs = [ ansible pytest ];
28
29 # tests not included with release
30 doCheck = false;
31
32 checkPhase = ''
33 pytest tests
34 '';
35
36 meta = with stdenv.lib; {
37 homepage = http://github.com/jlaska/pytest-ansible;
38 description = "Plugin for py.test to simplify calling ansible modules from tests or fixtures";
39 license = licenses.mit;
40 maintainers = [ maintainers.costrouc ];
41 };
42}