1{
2 lib,
3 azure-core,
4 buildPythonPackage,
5 fetchPypi,
6 isodate,
7 pythonOlder,
8 typing-extensions,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "azure-servicebus";
14 version = "7.14.2";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 pname = "azure_servicebus";
21 inherit version;
22 hash = "sha256-QBS3rIguDZ/4dqMwKBhgfhpkC5Pp1IIHPWOfWwQmblw=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 azure-core
29 isodate
30 typing-extensions
31 ];
32
33 # Tests require dev-tools
34 doCheck = false;
35
36 pythonImportsCheck = [ "azure.servicebus" ];
37
38 meta = with lib; {
39 description = "Microsoft Azure Service Bus Client Library";
40 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus";
41 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-servicebus_${version}/sdk/servicebus/azure-servicebus/CHANGELOG.md";
42 license = licenses.mit;
43 maintainers = with maintainers; [ maxwilson ];
44 };
45}