1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pytest-ansible/default.nix

43 lines
888 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, ansible
, pytest
, mock
, isPy3k
}:
buildPythonPackage rec {
2018-11-04 10:35:13 +00:00
version = "2.0.2";
pname = "pytest-ansible";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:13 +00:00
sha256 = "d69d89cbcf29e587cbe6ec4b229346edbf027d3c04944dd7bcbf3d7bba46348f";
};
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 ];
};
}