Commit cf5dad02 authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.ansible-core: use fetchFromGitHub

parent 8a45379d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  python,
  pythonOlder,
  installShellFiles,
@@ -39,10 +39,11 @@ buildPythonPackage rec {

  disabled = pythonOlder "3.12";

  src = fetchPypi {
    pname = "ansible_core";
    inherit version;
    hash = "sha256-JDppZpoAe+B5Q2C8RHf3DgEozgCR3Dr0xcuBxqRm9XM=";
  src = fetchFromGitHub {
    owner = "ansible";
    repo = "ansible";
    tag = "v${version}";
    hash = "sha256-/Eoq0ixAWoDvrHnxXgDth5TUKZzUDxDTzTDzjSUPugk=";
  };

  # ansible_connection is already wrapped, so don't pass it through
+6 −3
Original line number Diff line number Diff line
@@ -6062,7 +6062,8 @@ with pkgs;
  ansible_2_18 = python3Packages.toPythonApplication (
    python3Packages.ansible-core.overridePythonAttrs (oldAttrs: rec {
      version = "2.18.8";
      src = oldAttrs.src.override {
      src = fetchPypi {
        pname = "ansible_core";
        inherit version;
        hash = "sha256-sHZiFalqR845kz0n4emWyivrVM8bOQfHQtNckTsfeM0=";
      };
@@ -6071,7 +6072,8 @@ with pkgs;
  ansible_2_17 = python3Packages.toPythonApplication (
    python3Packages.ansible-core.overridePythonAttrs (oldAttrs: rec {
      version = "2.17.8";
      src = oldAttrs.src.override {
      src = fetchPypi {
        pname = "ansible_core";
        inherit version;
        hash = "sha256-Ob6KeYaix9NgabDZciC8L2eDxl/qfG1+Di0A0ayK+Hc=";
      };
@@ -6080,7 +6082,8 @@ with pkgs;
  ansible_2_16 = python3Packages.toPythonApplication (
    python3Packages.ansible-core.overridePythonAttrs (oldAttrs: rec {
      version = "2.16.14";
      src = oldAttrs.src.override {
      src = fetchPypi {
        pname = "ansible_core";
        inherit version;
        hash = "sha256-gCef/9mGhrrfqjLh7HhdmKbfGy/B5Al97AWXZA10ZBU=";
      };