mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
0215034f25
when they already rely on SRI hashes.
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, ansible-core
|
|
, flaky
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pyyaml
|
|
, setuptools-scm
|
|
, subprocess-tee
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansible-compat";
|
|
version = "3.0.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-19xeS3+t6bc3XFaKJEdbe+gQJMrCogyu8yYO8LUSh7Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
subprocess-tee
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
export PATH=$PATH:$out/bin
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
ansible-core
|
|
flaky
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# require network
|
|
"test_prepare_environment_with_collections"
|
|
"test_prerun_reqs_v1"
|
|
"test_prerun_reqs_v2"
|
|
"test_require_collection_wrong_version"
|
|
"test_require_collection"
|
|
"test_install_collection"
|
|
"test_install_collection_dest"
|
|
"test_upgrade_collection"
|
|
"test_require_collection_no_cache_dir"
|
|
"test_runtime"
|
|
];
|
|
|
|
pythonImportsCheck = [ "ansible_compat" ];
|
|
|
|
meta = with lib; {
|
|
description = "A python package containing functions that help interacting with various versions of Ansible";
|
|
homepage = "https://github.com/ansible/ansible-compat";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|