nixpkgs/pkgs/development/python-modules/azure-core/default.nix

63 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy27
, aiodns
, aiohttp
, mock
, msrest
, pytest
2020-08-09 02:51:07 +02:00
, pytest-asyncio
, pytest-trio
, pytestCheckHook
, requests
, six
, trio
, typing-extensions
}:
buildPythonPackage rec {
version = "1.15.0";
pname = "azure-core";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "197917b98fec661c35392e32abec4f690ac2117371a814e25e57c224ce23cf1f";
};
propagatedBuildInputs = [
requests
six
];
checkInputs = [
aiodns
aiohttp
mock
msrest
pytest
2020-08-09 02:51:07 +02:00
pytest-trio
pytest-asyncio
pytestCheckHook
trio
typing-extensions
];
pytestFlagsArray = [ "tests/" ];
2020-08-09 02:51:07 +02:00
# 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 ];
};
}