From ca618d6401631cf2c82c81220c54e774b514297f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 22 Jun 2021 16:14:07 +0200 Subject: 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. --- pkgs/development/python-modules/ansible/core.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'pkgs/development/python-modules/ansible/core.nix') diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index 45ce2b8778a..4dd606c9adb 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -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"; -- cgit 1.4.1