summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible/base.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-06-22 16:14:07 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-06-22 18:04:59 +0200
commitca618d6401631cf2c82c81220c54e774b514297f (patch)
tree8f9478e218f28837cdee89160dc61e3005b24980 /pkgs/development/python-modules/ansible/base.nix
parente578f0f7d06ef94030d45298296d6b8b2a61b97d (diff)
downloadnixpkgs-ca618d6401631cf2c82c81220c54e774b514297f.tar
nixpkgs-ca618d6401631cf2c82c81220c54e774b514297f.tar.gz
nixpkgs-ca618d6401631cf2c82c81220c54e774b514297f.tar.bz2
nixpkgs-ca618d6401631cf2c82c81220c54e774b514297f.tar.lz
nixpkgs-ca618d6401631cf2c82c81220c54e774b514297f.tar.xz
nixpkgs-ca618d6401631cf2c82c81220c54e774b514297f.tar.zst
nixpkgs-ca618d6401631cf2c82c81220c54e774b514297f.zip
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.
Diffstat (limited to 'pkgs/development/python-modules/ansible/base.nix')
-rw-r--r--pkgs/development/python-modules/ansible/base.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/ansible/base.nix b/pkgs/development/python-modules/ansible/base.nix
index 06f53423219..0a5cc01d929 100644
--- a/pkgs/development/python-modules/ansible/base.nix
+++ b/pkgs/development/python-modules/ansible/base.nix
@@ -1,8 +1,8 @@
 { lib
+, callPackage
 , buildPythonPackage
 , fetchPypi
 , installShellFiles
-, ansible-collections
 , cryptography
 , jinja2
 , junit-xml
@@ -20,6 +20,12 @@
 , xmltodict
 }:
 
+let
+  ansible-collections = callPackage ./collections.nix {
+    version = "3.4.0"; # must be < 4.0
+    sha256 = "096rbgz730njk0pg8qnc27mmz110wqrw354ca9gasb7rqg0f4d6a";
+  };
+in
 buildPythonPackage rec {
   pname = "ansible-base";
   version = "2.10.11";
@@ -69,6 +75,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";