1{ lib
2, buildPythonPackage
3, fetchPypi
4, azure-core
5, uamqp
6, pythonOlder
7, typing-extensions
8}:
9
10buildPythonPackage rec {
11 pname = "azure-eventhub";
12 version = "5.10.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 extension = "zip";
20 sha256 = "sha256-LV+o7dMVCFIQfq9d2wYY34LghIP5FN06zDpUPtkELFQ=";
21 };
22
23 propagatedBuildInputs = [
24 azure-core
25 uamqp
26 typing-extensions
27 ];
28
29 # too complicated to set up
30 doCheck = false;
31
32 pythonImportsCheck = [
33 "azure.eventhub"
34 "azure.eventhub.aio"
35 ];
36
37 meta = with lib; {
38 description = "Microsoft Azure Event Hubs Client Library for Python";
39 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub";
40 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-eventhub_${version}/sdk/eventhub/azure-eventhub/CHANGELOG.md";
41 license = licenses.mit;
42 maintainers = with maintainers; [ dotlambda ];
43 };
44}