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

56 lines
1.0 KiB
Nix
Raw Normal View History

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