mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
43 lines
939 B
Nix
43 lines
939 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, ansible
|
|
, pytest
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-ansible";
|
|
version = "2.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ansible";
|
|
repo = "pytest-ansible";
|
|
rev = "v${version}";
|
|
sha256 = "0v97sqk3q2vkmwnjlnncz8ss8086x9jg3cz0g2nzlngs4ql1gdb0";
|
|
};
|
|
|
|
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, even on github
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
HOME=$TMPDIR pytest tests/
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://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 ];
|
|
};
|
|
}
|