1{ pkgs 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, isPy3k 6, adal 7, msrest 8, mock 9, httpretty 10, pytest 11, pytest-asyncio 12}: 13 14buildPythonPackage rec { 15 version = "0.6.4"; 16 pname = "msrestazure"; 17 18 # Pypi tarball doesnt include tests 19 # see https://github.com/Azure/msrestazure-for-python/pull/133 20 src = fetchFromGitHub { 21 owner = "Azure"; 22 repo = "msrestazure-for-python"; 23 rev = "v${version}"; 24 sha256 = "0ik81f0n6r27f02gblgm0vl5zl3wc6ijsscihgvc1fgm9f5mk5b5"; 25 }; 26 27 propagatedBuildInputs = [ adal msrest ]; 28 29 checkInputs = [ httpretty mock pytest ] 30 ++ lib.optionals isPy3k [ pytest-asyncio ]; 31 32 checkPhase = '' 33 pytest tests/ 34 ''; 35 36 meta = with pkgs.lib; { 37 description = "The runtime library 'msrestazure' for AutoRest generated Python clients."; 38 homepage = "https://azure.microsoft.com/en-us/develop/python/"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ bendlas jonringer ]; 41 }; 42}