Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 62 lines 1.3 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.14.0"; 18 pname = "azure-core"; 19 disabled = isPy27; 20 21 src = fetchPypi { 22 inherit pname version; 23 extension = "zip"; 24 sha256 = "f32bb64aabe61f496255c16dd6c555a027da628109460bf27311cee0caf78f96"; 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 disabledTestPaths = [ 49 # requires testing modules which aren't published, and likely to create cyclic dependencies 50 "tests/test_connection_string_parsing.py" 51 # wants network 52 "tests/async_tests/test_streaming_async.py" 53 "tests/test_streaming.py" 54 ]; 55 56 meta = with lib; { 57 description = "Microsoft Azure Core Library for Python"; 58 homepage = "https://github.com/Azure/azure-sdk-for-python"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ jonringer ]; 61 }; 62}