ansible, ansible_2_10: internalize collections package

This drops the python3Packages.ansible-collections attribute in favor of
a local callPackage that overwrites the collections package per ansible
version.

(cherry picked from commit ca618d6401631cf2c82c81220c54e774b514297f)
This commit is contained in:
Martin Weinelt
2021-09-18 03:51:40 +02:00
parent 10f8ee55fe
commit ba21a7bc10
4 changed files with 28 additions and 8 deletions
@@ -1,8 +1,8 @@
{ lib
, callPackage
, buildPythonPackage
, fetchPypi
, installShellFiles
, ansible-collections
, cryptography
, jinja2
, junit-xml
@@ -21,6 +21,12 @@
, xmltodict
}:
let
ansible-collections = callPackage ./collections.nix {
version = "4.1.0";
sha256 = "0rrivq1g0vizah8zmf012lzig2xxfk5x1371k16s3nn4zfkwqqgm";
};
in
buildPythonPackage rec {
pname = "ansible-core";
version = "2.11.2";
@@ -74,6 +80,10 @@ buildPythonPackage rec {
# internal import errors, missing dependencies
doCheck = false;
passthru = {
collections = ansible-collections;
};
meta = with lib; {
description = "Radically simple IT automation";
homepage = "https://www.ansible.com";