pythonPackages.msrestazure: 0.6.0 -> 0.6.1

This commit is contained in:
Jonathan Ringer 2019-06-19 15:28:19 -07:00 committed by Frederik Rietdijk
parent e8fc86dbaa
commit c438c0e0b7

View File

@ -1,25 +1,42 @@
{ pkgs { pkgs
, lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, isPy3k
, adal , adal
, msrest , msrest
, mock
, httpretty
, pytest
, pytest-asyncio
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.6.0"; version = "0.6.1";
pname = "msrestazure"; pname = "msrestazure";
src = fetchPypi { # Pypi tarball doesnt include tests
inherit pname version; # see https://github.com/Azure/msrestazure-for-python/pull/133
sha256 = "06s04f6nng4na2663kc12a3skiaqb631nscjfwpsrx4lzkf8bccr"; src = fetchFromGitHub {
owner = "Azure";
repo = "msrestazure-for-python";
rev = "v${version}";
sha256 = "09swndz57131b8x57mzibnsr1sv0l80pk62p89q99gsd6mvc389c";
}; };
propagatedBuildInputs = [ adal msrest ]; propagatedBuildInputs = [ adal msrest ];
checkInputs = [ httpretty mock pytest ]
++ lib.optional isPy3k [ pytest-asyncio ];
checkPhase = ''
pytest tests/
'';
meta = with pkgs.lib; { meta = with pkgs.lib; {
description = "The runtime library 'msrestazure' for AutoRest generated Python clients."; description = "The runtime library 'msrestazure' for AutoRest generated Python clients.";
homepage = "https://azure.microsoft.com/en-us/develop/python/"; homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ bendlas ]; maintainers = with maintainers; [ bendlas jonringer ];
}; };
} }