3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/azure-core/default.nix
2021-05-06 11:50:10 -07:00

58 lines
1.2 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.13.0";
pname = "azure-core";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "624b46db407dbed9e03134ab65214efab5b5315949a1fbd6cd592c46fb272588";
};
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" ];
# requires testing modules which aren't published, and likely to create cyclic dependencies
disabledTestPaths = [ "tests/test_connection_string_parsing.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 ];
};
}