From b489e3b3acea30e73fd127379be8115feeef1765 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 6 Oct 2020 01:17:01 -0700 Subject: [PATCH] python3Packages.azure-servicemanagement-legacy: use fetchPypi --- .../default.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix b/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix index dbd4c1c040fa..13d577362a36 100644 --- a/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix +++ b/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix @@ -1,32 +1,29 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , azure-common , requests }: -buildPythonPackage { +buildPythonPackage rec { version = "0.20.7"; pname = "azure-servicemanagement-legacy"; - src = fetchFromGitHub { - owner = "Azure"; - repo = "azure-sdk-for-python"; - rev = "ab01fc1f23462f130c69f46505524b88101023dc"; - sha256 = "0w2bm9hkwy1m94l8r2klnpqn4192y8bir3z8bymxgfx9y0b1mn2q"; + src = fetchPypi { + inherit version pname; + extension = "zip"; + sha256 = "1kcibw17qm8c02y28xabm3k1zrawi6g4q8kzc751l5l3vagqnf2x"; }; - preBuild = '' - cd ./azure-servicemanagement-legacy - ''; - propagatedBuildInputs = [ azure-common requests ]; + pythonNamespaces = [ "azure" ]; # has no tests doCheck = false; + pythonImportsCheck = [ "azure.servicemanagement" ]; meta = with lib; { description = "This is the Microsoft Azure Service Management Legacy Client Library";