2018-12-20 00:07:28 +01:00
|
|
|
{ pkgs
|
2019-06-20 00:28:19 +02:00
|
|
|
, lib
|
2018-12-20 00:07:28 +01:00
|
|
|
, buildPythonPackage
|
2019-06-20 00:28:19 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
2018-12-20 00:07:28 +01:00
|
|
|
, adal
|
|
|
|
, msrest
|
2019-06-20 00:28:19 +02:00
|
|
|
, mock
|
|
|
|
, httpretty
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
2018-12-20 00:07:28 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-06-20 00:28:19 +02:00
|
|
|
version = "0.6.1";
|
2018-12-20 00:07:28 +01:00
|
|
|
pname = "msrestazure";
|
|
|
|
|
2019-06-20 00:28:19 +02:00
|
|
|
# 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";
|
2018-12-20 00:07:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ adal msrest ];
|
|
|
|
|
2019-06-20 00:28:19 +02:00
|
|
|
checkInputs = [ httpretty mock pytest ]
|
|
|
|
++ lib.optional isPy3k [ pytest-asyncio ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/
|
|
|
|
'';
|
|
|
|
|
2018-12-20 00:07:28 +01:00
|
|
|
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;
|
2019-06-20 00:28:19 +02:00
|
|
|
maintainers = with maintainers; [ bendlas jonringer ];
|
2018-12-20 00:07:28 +01:00
|
|
|
};
|
|
|
|
}
|