summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible/core.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/core.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/core.nix')
-rw-r--r--pkgs/development/python-modules/ansible/core.nix12
1 files changed, 11 insertions, 1 deletions
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";