From e1b79e394ff01a5a90a0f0271a76ba9644be83b2 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 20 Dec 2019 20:47:39 -0800 Subject: [PATCH] python3Packages.azure-core: init at 1.1.1 --- .../python-modules/azure-core/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/azure-core/default.nix diff --git a/pkgs/development/python-modules/azure-core/default.nix b/pkgs/development/python-modules/azure-core/default.nix new file mode 100644 index 00000000000..ee134762149 --- /dev/null +++ b/pkgs/development/python-modules/azure-core/default.nix @@ -0,0 +1,48 @@ +{ lib, buildPythonPackage, fetchPypi, isPy27 +, aiodns +, aiohttp +, msrest +, pytest +, pytestCheckHook +, requests +, six +, trio +, typing-extensions +}: + +buildPythonPackage rec { + version = "1.1.1"; + pname = "azure-core"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "00jm43gw89n446zdm18qziwd85lsx1gandxpmw62dc1bdnsfakxl"; + }; + + propagatedBuildInputs = [ + requests + six + ]; + + checkInputs = [ + aiodns + aiohttp + msrest + pytest + pytestCheckHook + trio + typing-extensions + ]; + + pytestFlagsArray = [ "tests/" ]; + disabledTests = [ "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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a6cf3e8766e..d09709ed0e4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -268,6 +268,8 @@ in { azure-batch = callPackage ../development/python-modules/azure-batch { }; + azure-core = callPackage ../development/python-modules/azure-core { }; + azure-cosmosdb-nspkg = callPackage ../development/python-modules/azure-cosmosdb-nspkg { }; azure-cosmosdb-table = callPackage ../development/python-modules/azure-cosmosdb-table { };