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
94
pkgs/development/python-modules/ansible-runner/default.nix
Normal file
94
pkgs/development/python-modules/ansible-runner/default.nix
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, ansible-core
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, openssh
|
||||
, pbr
|
||||
, pexpect
|
||||
, psutil
|
||||
, pytest-mock
|
||||
, pytest-timeout
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, python-daemon
|
||||
, pyyaml
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-runner";
|
||||
version = "2.1.3";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-2m5dD+gGDL5LnY7QbDYiGdu4GYu0C49WU29GZY2bnBo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pbr
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ansible-core
|
||||
psutil
|
||||
pexpect
|
||||
python-daemon
|
||||
pyyaml
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
ansible-core # required to place ansible CLI onto the PATH in tests
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
pytest-timeout
|
||||
pytest-xdist
|
||||
mock
|
||||
openssh
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
export PATH="$PATH:$out/bin";
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Requires network access
|
||||
"test_callback_plugin_task_args_leak"
|
||||
"test_env_accuracy"
|
||||
# Times out on slower hardware
|
||||
"test_large_stdout_blob"
|
||||
# Failed: DID NOT RAISE <class 'RuntimeError'>
|
||||
"test_validate_pattern"
|
||||
] ++ lib.optional stdenv.isDarwin [
|
||||
# test_process_isolation_settings is currently broken on Darwin Catalina
|
||||
# https://github.com/ansible/ansible-runner/issues/413
|
||||
"process_isolation_settings"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# These tests unset PATH and then run executables like `bash` (see https://github.com/ansible/ansible-runner/pull/918)
|
||||
"test/integration/test_runner.py"
|
||||
"test/unit/test_runner.py"
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
# Integration tests on Darwin are not regularly passing in ansible-runner's own CI
|
||||
"test/integration"
|
||||
# These tests write to `/tmp` which is not writable on Darwin
|
||||
"test/unit/config/test__base.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ansible_runner"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Helps when interfacing with Ansible";
|
||||
homepage = "https://github.com/ansible/ansible-runner";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue