1{ lib
2, buildPythonPackage
3, fetchPypi
4, azure-core
5, uamqp
6}:
7
8buildPythonPackage rec {
9 pname = "azure-eventhub";
10 version = "5.6.1";
11
12 src = fetchPypi {
13 inherit pname version;
14 extension = "zip";
15 sha256 = "sha256-ssjTesjPFITaB5Uy061podqL14ojeCIVm3LWsF3kY40=";
16 };
17
18 propagatedBuildInputs = [
19 azure-core
20 uamqp
21 ];
22
23 # too complicated to set up
24 doCheck = false;
25
26 pythonImportsCheck = [
27 "azure.eventhub"
28 "azure.eventhub.aio"
29 ];
30
31 meta = with lib; {
32 description = "Microsoft Azure Event Hubs Client Library for Python";
33 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub";
34 license = licenses.mit;
35 maintainers = with maintainers; [ dotlambda ];
36 };
37}