azure-cli: remove blanket python2 compat logic

main
Jonathan Ringer 2 years ago
parent c055b9b796
commit 40e0a8d9d5
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 6
      pkgs/development/python-modules/azure-mgmt-consumption/default.nix
  2. 6
      pkgs/development/python-modules/azure-mgmt-relay/default.nix
  3. 18
      pkgs/tools/admin/azure-cli/python-packages.nix

@ -24,6 +24,12 @@ buildPythonPackage rec {
azure-mgmt-nspkg
];
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
pythonNamespaces = [ "azure.mgmt" ];
# has no tests

@ -24,6 +24,12 @@ buildPythonPackage rec {
azure-mgmt-nspkg
];
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
pythonNamespaces = [ "azure.mgmt" ];
# has no tests

@ -5,9 +5,7 @@ let
overrideAzureMgmtPackage = package: version: extension: sha256:
# check to make sure overriding is even necessary
if version == package.version then
package
else package.overrideAttrs(oldAttrs: rec {
package.overrideAttrs(oldAttrs: rec {
inherit version;
src = py.pkgs.fetchPypi {
@ -15,14 +13,14 @@ let
inherit version sha256 extension;
};
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
#preBuild = ''
# rm -f azure_bdist_wheel.py
# substituteInPlace setup.cfg \
# --replace "azure-namespace-package = azure-mgmt-nspkg" ""
#'';
# force PEP420
pythonNamespaces = [ "azure.mgmt" ];
## force PEP420
#pythonNamespaces = [ "azure.mgmt" ];
});
py = python3.override {

Loading…
Cancel
Save