azure-cli: migrate to Python38

This commit is contained in:
freezeboy 2020-11-13 21:00:39 +01:00 committed by Jonathan Ringer
parent fed997f561
commit a35390d92b
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, lib, python, fetchFromGitHub, installShellFiles }:
{ stdenv, lib, python3, fetchFromGitHub, installShellFiles }:
let
version = "2.14.2";
@ -10,12 +10,14 @@ let
};
# put packages that needs to be overriden in the py package scope
py = import ./python-packages.nix { inherit stdenv python lib src version; };
py = import ./python-packages.nix {
inherit stdenv lib src version;
python = python3;
};
in
py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage {
pname = "azure-cli";
inherit version src;
disabled = python.isPy27; # namespacing assumes PEP420, which isn't compat with py2
sourceRoot = "source/src/azure-cli";

View File

@ -944,7 +944,7 @@ in
iamy = callPackage ../tools/admin/iamy { };
azure-cli = callPackage ../tools/admin/azure-cli { python = python37; };
azure-cli = callPackage ../tools/admin/azure-cli { };
azure-storage-azcopy = callPackage ../development/tools/azcopy { };