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