pythonPackages.msrest: refactor

This commit is contained in:
Max Wilson 2019-05-21 14:12:38 -04:00 committed by Wael M. Nasreddine
parent e0c1e74805
commit 4049da4b07
No known key found for this signature in database
GPG Key ID: FD437548E0BF0F5F

View File

@ -1,6 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, isPy3k , isPy3k
, requests , requests
, requests_oauthlib , requests_oauthlib
@ -21,9 +21,13 @@ buildPythonPackage rec {
version = "0.6.8"; version = "0.6.8";
pname = "msrest"; pname = "msrest";
src = fetchPypi { # no tests in PyPI tarball
inherit pname version; # see https://github.com/Azure/msrest-for-python/pull/152
sha256 = "0yd43fnmfxkvk3idkyn67ziwjgkwkn261kicr3szjibpqjqcpsf9"; src = fetchFromGitHub {
owner = "Azure";
repo = "msrest-for-python";
rev = "v${version}";
sha256 = "1vnh0y68vqf7hwhghbf6bjadrzlv98aj4vfz6g592lww3ijpy77w";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -42,8 +46,8 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "The runtime library 'msrest' for AutoRest generated Python clients."; description = "The runtime library 'msrest' for AutoRest generated Python clients.";
homepage = "https://azure.microsoft.com/en-us/develop/python/"; homepage = https://github.com/Azure/msrest-for-python;
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ bendlas jonringer ]; maintainers = with maintainers; [ bendlas jonringer mwilsoninsight ];
}; };
} }