1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 setuptools,
7 azure-core,
8 isodate,
9 typing-extensions,
10}:
11
12buildPythonPackage rec {
13 pname = "azure-monitor-ingestion";
14 version = "1.1.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 pname = "azure_monitor_ingestion";
21 inherit version;
22 hash = "sha256-l6/ueA2a4waRKM3ncCfUzGL6gk/mTVusiArEpksKDE4=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 azure-core
29 isodate
30 typing-extensions
31 ];
32
33 pythonImportsCheck = [
34 "azure.monitor.ingestion"
35 "azure.monitor.ingestion.aio"
36 ];
37
38 # requires checkout from mono-repo and a mock account
39 doCheck = false;
40
41 meta = with lib; {
42 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-monitor-ingestion_${version}/sdk/monitor/azure-monitor-ingestion/CHANGELOG.md";
43 description = "Send custom logs to Azure Monitor using the Logs Ingestion API";
44 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-ingestion";
45 license = licenses.mit;
46 maintainers = with maintainers; [ dotlambda ];
47 };
48}