2018-10-11 00:31:31 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ansible
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-ansible";
|
2019-02-24 21:57:16 +00:00
|
|
|
version = "2.0.2";
|
2018-10-11 00:31:31 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:13 +00:00
|
|
|
sha256 = "d69d89cbcf29e587cbe6ec4b229346edbf027d3c04944dd7bcbf3d7bba46348f";
|
2018-10-11 00:31:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = ''
|
2019-02-24 21:57:16 +00:00
|
|
|
pytest
|
2018-10-11 00:31:31 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://github.com/jlaska/pytest-ansible;
|
2018-10-11 00:31:31 +01:00
|
|
|
description = "Plugin for py.test to simplify calling ansible modules from tests or fixtures";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|