2018-12-19 23:07:28 +00:00
|
|
|
{ pkgs
|
2019-06-19 23:28:19 +01:00
|
|
|
, lib
|
2018-12-19 23:07:28 +00:00
|
|
|
, buildPythonPackage
|
2019-06-19 23:28:19 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
2018-12-19 23:07:28 +00:00
|
|
|
, adal
|
|
|
|
, msrest
|
2019-06-19 23:28:19 +01:00
|
|
|
, mock
|
|
|
|
, httpretty
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
2018-12-19 23:07:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-07-08 06:08:07 +01:00
|
|
|
version = "0.6.4";
|
2018-12-19 23:07:28 +00:00
|
|
|
pname = "msrestazure";
|
|
|
|
|
2019-06-19 23:28:19 +01: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}";
|
2020-07-08 06:08:07 +01:00
|
|
|
sha256 = "0ik81f0n6r27f02gblgm0vl5zl3wc6ijsscihgvc1fgm9f5mk5b5";
|
2018-12-19 23:07:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ adal msrest ];
|
|
|
|
|
2019-06-19 23:28:19 +01:00
|
|
|
checkInputs = [ httpretty mock pytest ]
|
2019-11-10 00:12:23 +00:00
|
|
|
++ lib.optionals isPy3k [ pytest-asyncio ];
|
2019-06-19 23:28:19 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/
|
|
|
|
'';
|
|
|
|
|
2018-12-19 23:07:28 +00: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-19 23:28:19 +01:00
|
|
|
maintainers = with maintainers; [ bendlas jonringer ];
|
2018-12-19 23:07:28 +00:00
|
|
|
};
|
|
|
|
}
|