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