pythonPackages.pytest-ansible: init at 2.0.1
This commit is contained in:
parent
648acbabca
commit
1533099b9f
42
pkgs/development/python-modules/pytest-ansible/default.nix
Normal file
42
pkgs/development/python-modules/pytest-ansible/default.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1921,6 +1921,8 @@ in {
|
|||||||
|
|
||||||
pytest-annotate = callPackage ../development/python-modules/pytest-annotate { };
|
pytest-annotate = callPackage ../development/python-modules/pytest-annotate { };
|
||||||
|
|
||||||
|
pytest-ansible = callPackage ../development/python-modules/pytest-ansible { };
|
||||||
|
|
||||||
pytest-aiohttp = callPackage ../development/python-modules/pytest-aiohttp { };
|
pytest-aiohttp = callPackage ../development/python-modules/pytest-aiohttp { };
|
||||||
|
|
||||||
pytest-benchmark = callPackage ../development/python-modules/pytest-benchmark { };
|
pytest-benchmark = callPackage ../development/python-modules/pytest-benchmark { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user