nixpkgs/pkgs/development/python-modules/azure-core/default.nix
2021-05-20 22:30:48 -07:00

63 lines
1.3 KiB
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27
, aiodns
, aiohttp
, mock
, msrest
, pytest
, pytest-asyncio
, pytest-trio
, pytestCheckHook
, requests
, six
, trio
, typing-extensions
}:
buildPythonPackage rec {
version = "1.14.0";
pname = "azure-core";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "f32bb64aabe61f496255c16dd6c555a027da628109460bf27311cee0caf78f96";
};
propagatedBuildInputs = [
requests
six
];
checkInputs = [
aiodns
aiohttp
mock
msrest
pytest
pytest-trio
pytest-asyncio
pytestCheckHook
trio
typing-extensions
];
pytestFlagsArray = [ "tests/" ];
# disable tests which touch network
disabledTests = [ "aiohttp" "multipart_send" "response" "request" "timeout" ];
disabledTestPaths = [
# requires testing modules which aren't published, and likely to create cyclic dependencies
"tests/test_connection_string_parsing.py"
# wants network
"tests/async_tests/test_streaming_async.py"
"tests/test_streaming.py"
];
meta = with lib; {
description = "Microsoft Azure Core Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}