Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, aiodns 3, aiohttp 4, mock 5, msrest 6, pytest 7, pytest-asyncio 8, pytest-trio 9, pytestCheckHook 10, requests 11, six 12, trio 13, typing-extensions 14}: 15 16buildPythonPackage rec { 17 version = "1.8.0"; 18 pname = "azure-core"; 19 disabled = isPy27; 20 21 src = fetchPypi { 22 inherit pname version; 23 extension = "zip"; 24 sha256 = "c89bbdcdc13ad45fe57d775ed87b15baf6d0b039a1ecd0a1bc91d2f713cb1f08"; 25 }; 26 27 propagatedBuildInputs = [ 28 requests 29 six 30 ]; 31 32 checkInputs = [ 33 aiodns 34 aiohttp 35 mock 36 msrest 37 pytest 38 pytest-trio 39 pytest-asyncio 40 pytestCheckHook 41 trio 42 typing-extensions 43 ]; 44 45 pytestFlagsArray = [ "tests/" ]; 46 # disable tests which touch network 47 disabledTests = [ "aiohttp" "multipart_send" "response" "request" "timeout" ]; 48 49 meta = with lib; { 50 description = "Microsoft Azure Core Library for Python"; 51 homepage = "https://github.com/Azure/azure-sdk-for-python"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ jonringer ]; 54 }; 55}