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