uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/development/python-modules/pytest-ansible/default.nix
Normal file
46
pkgs/development/python-modules/pytest-ansible/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, ansible
|
||||
, pytest
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-ansible";
|
||||
version = "2.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ansible";
|
||||
repo = "pytest-ansible";
|
||||
rev = "v${version}";
|
||||
sha256 = "0vr015msciwzz20zplxalfmfx5hbg8rkf8vwjdg3z12fba8z8ks4";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i "s/'setuptools-markdown'//g" setup.py
|
||||
'';
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
# requires pandoc < 2.0
|
||||
# buildInputs = [ setuptools-markdown ];
|
||||
checkInputs = [ mock ];
|
||||
propagatedBuildInputs = [ ansible ];
|
||||
|
||||
# tests not included with release, even on github
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR pytest tests/
|
||||
'';
|
||||
|
||||
meta = with 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 ];
|
||||
# https://github.com/ansible-community/pytest-ansible/blob/v2.2.4/setup.py#L124
|
||||
broken = lib.versionAtLeast ansible.version "2.10";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue