python3Packages.azure-servicemanagement-legacy: use fetchPypi

This commit is contained in:
Jonathan Ringer
2020-10-07 00:55:56 -07:00
committed by Jon
parent 433db454f3
commit b489e3b3ac
@@ -1,32 +1,29 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchPypi
, azure-common , azure-common
, requests , requests
}: }:
buildPythonPackage { buildPythonPackage rec {
version = "0.20.7"; version = "0.20.7";
pname = "azure-servicemanagement-legacy"; pname = "azure-servicemanagement-legacy";
src = fetchFromGitHub { src = fetchPypi {
owner = "Azure"; inherit version pname;
repo = "azure-sdk-for-python"; extension = "zip";
rev = "ab01fc1f23462f130c69f46505524b88101023dc"; sha256 = "1kcibw17qm8c02y28xabm3k1zrawi6g4q8kzc751l5l3vagqnf2x";
sha256 = "0w2bm9hkwy1m94l8r2klnpqn4192y8bir3z8bymxgfx9y0b1mn2q";
}; };
preBuild = ''
cd ./azure-servicemanagement-legacy
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
azure-common azure-common
requests requests
]; ];
pythonNamespaces = [ "azure" ];
# has no tests # has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "azure.servicemanagement" ];
meta = with lib; { meta = with lib; {
description = "This is the Microsoft Azure Service Management Legacy Client Library"; description = "This is the Microsoft Azure Service Management Legacy Client Library";