Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 42 lines 956 B view raw
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.1"; 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 = "09swndz57131b8x57mzibnsr1sv0l80pk62p89q99gsd6mvc389c"; 25 }; 26 27 propagatedBuildInputs = [ adal msrest ]; 28 29 checkInputs = [ httpretty mock pytest ] 30 ++ lib.optional 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}