azure-cli: migrate to Python38

This commit is contained in:
freezeboy
2020-11-27 22:59:27 -08:00
committed by Jonathan Ringer
parent fed997f561
commit a35390d92b
2 changed files with 6 additions and 4 deletions
+5 -3
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";