Merge master into staging-next
This commit is contained in:
@@ -8,20 +8,33 @@
|
||||
, six
|
||||
, stdenv
|
||||
, ansible
|
||||
, pytest
|
||||
, mock
|
||||
, openssh
|
||||
, pytest-mock
|
||||
, pytest-timeout
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-runner";
|
||||
version = "2.0.2";
|
||||
version = "2.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "c02b690803ec0be4453411c53743cd3fdca1dfc66dfa075794e14e717c5b61b3";
|
||||
sha256 = "15j0ljgw1rjxq4xiywxxxnxj4r6vwk8dwljkdsjmq3qmwgifcswg";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest mock ];
|
||||
checkInputs = [
|
||||
ansible # required to place ansible CLI onto the PATH in tests
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
pytest-timeout
|
||||
pytest-xdist
|
||||
mock
|
||||
openssh
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ansible
|
||||
psutil
|
||||
@@ -31,14 +44,31 @@ buildPythonPackage rec {
|
||||
six
|
||||
];
|
||||
|
||||
# test_process_isolation_settings is currently broken on Darwin Catalina
|
||||
# https://github.com/ansible/ansible-runner/issues/413
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR pytest \
|
||||
--ignore test/unit/test_runner.py \
|
||||
-k "not prepare ${lib.optionalString stdenv.isDarwin "and not process_isolation_settings"}"
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
"test_callback_plugin_task_args_leak" # requires internet
|
||||
"test_env_accuracy"
|
||||
"test_large_stdout_blob" # times out on slower hardware
|
||||
]
|
||||
# test_process_isolation_settings is currently broken on Darwin Catalina
|
||||
# https://github.com/ansible/ansible-runner/issues/413
|
||||
++ lib.optional stdenv.isDarwin "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"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Helps when interfacing with Ansible";
|
||||
homepage = "https://github.com/ansible/ansible-runner";
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aws-sam-translator";
|
||||
version = "1.39.0";
|
||||
version = "1.40.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = "serverless-application-model";
|
||||
rev = "v${version}";
|
||||
sha256 = "1a9m7zyqc414adw1i0sr2n9nlnmry0gi1ah1qna3yv9dx4ql9v9c";
|
||||
sha256 = "sha256-jVJVoS7rc1RebBvihzmv6LvufMf/VvXOwj0TYkXBdmo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -1,9 +1,19 @@
|
||||
{ buildPythonPackage, pythonOlder, fetchFromGitHub, lib, pygments
|
||||
, pytestCheckHook, pytest-mock }:
|
||||
{ lib
|
||||
, asttokens
|
||||
, buildPythonPackage
|
||||
, executing
|
||||
, fetchFromGitHub
|
||||
, pygments
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "devtools";
|
||||
version = "0.8.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -13,11 +23,25 @@ buildPythonPackage rec {
|
||||
sha256 = "0yavcbxzxi1nfa1k326gsl03y8sadi5z5acamwd8b1bsiv15p757";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygments ];
|
||||
propagatedBuildInputs = [
|
||||
asttokens
|
||||
executing
|
||||
pygments
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook pytest-mock ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "devtools" ];
|
||||
disabledTests = [
|
||||
# Test for Windows32
|
||||
"test_print_subprocess"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"devtools"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python's missing debug print command and other development tools";
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
{ lib
|
||||
, asttokens
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, asttokens
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "executing";
|
||||
version = "0.5.4";
|
||||
version = "0.8.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alexmojaki";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1hqx94h6l2wg9sljiaajfay2nr62sqa819w3bxrz8cdki1abdygv";
|
||||
sha256 = "sha256-CDZQ9DONn7M+2/GtmM2G6nQPpI9dOd0ca+2F1PGRwO4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -26,7 +27,13 @@ buildPythonPackage rec {
|
||||
|
||||
# Tests appear to run fine (Ran 22 tests in 4.076s) with setuptoolsCheckPhase
|
||||
# but crash with pytestCheckHook
|
||||
checkInputs = [ asttokens ];
|
||||
checkInputs = [
|
||||
asttokens
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"executing"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Get information about what a frame is currently doing, particularly the AST node being executed";
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libvirt";
|
||||
version = "7.8.0";
|
||||
version = "7.9.0";
|
||||
|
||||
src = assert version == libvirt.version; fetchFromGitLab {
|
||||
owner = "libvirt";
|
||||
repo = "libvirt-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-GuV++CFkywW0LGconyahfBGY+jjFA27Qu9JGIFt4bus=";
|
||||
sha256 = "sha256-cfCyQ3KTv0lYTZMriUhm6psBAcJJIcmR/M9V/lrLmVE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
Reference in New Issue
Block a user