Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 42 lines 941 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, ansible 5, pytest 6, mock 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-ansible"; 11 version = "2.1.1"; 12 13 src = fetchFromGitHub { 14 owner = "ansible"; 15 repo = "pytest-ansible"; 16 rev = "v${version}"; 17 sha256 = "0v97sqk3q2vkmwnjlnncz8ss8086x9jg3cz0g2nzlngs4ql1gdb0"; 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, even on github 30 doCheck = false; 31 32 checkPhase = '' 33 HOME=$TMPDIR pytest tests/ 34 ''; 35 36 meta = with stdenv.lib; { 37 homepage = "https://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}