1{
2 lib,
3 azure-core,
4 buildPythonPackage,
5 fetchFromGitHub,
6 gitUpdater,
7 setuptools,
8 typing-extensions,
9}:
10
11buildPythonPackage rec {
12 pname = "azure-eventhub";
13 version = "39.0.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "Azure";
18 repo = "azure-sdk-for-python";
19 tag = "azure-mgmt-containerservice_${version}";
20 hash = "sha256-zufXc8LR4STHi/jjV0bcLsifcHIif2m+3Q/KZlsSkRw=";
21 };
22
23 sourceRoot = "${src.name}/sdk/eventhub/azure-eventhub";
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 azure-core
29 typing-extensions
30 ];
31
32 # too complicated to set up
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "azure.eventhub"
37 "azure.eventhub.aio"
38 ];
39
40 passthru = {
41 updateScript = gitUpdater { rev-prefix = "azure.eventhub."; };
42 };
43
44 meta = with lib; {
45 description = "Microsoft Azure Event Hubs Client Library for Python";
46 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub";
47 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/${src.tag}/sdk/eventhub/azure-eventhub/CHANGELOG.md";
48 license = licenses.mit;
49 maintainers = with maintainers; [ dotlambda ];
50 };
51}