forked from mirrors/nixpkgs
56 lines
1 KiB
Nix
56 lines
1 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.9.0";
|
|
pname = "azure-core";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
extension = "zip";
|
|
sha256 = "ef8ae93a2ce8b595f231395579be11aadc1838168cbc2582e2d0bbd8b15c461f";
|
|
};
|
|
|
|
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" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|