1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 azure-core,
6 azure-identity,
7 opencensus,
8 psutil,
9 requests,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "opencensus-ext-azure";
15 version = "1.1.15";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "census-instrumentation";
20 repo = "opencensus-python";
21 tag = "opencensus-ext-azure@${version}";
22 hash = "sha256-fnqflSyNnkEy9XYoirk4iDZI1zYTRMbrYMyQ/4ge3Rs=";
23 };
24
25 sourceRoot = "${src.name}/contrib/opencensus-ext-azure";
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 azure-core
31 azure-identity
32 opencensus
33 psutil
34 requests
35 ];
36
37 pythonImportsCheck = [ "opencensus.ext.azure" ];
38
39 doCheck = false; # tests are not included in the PyPi tarball
40
41 meta = with lib; {
42 homepage = "https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-azure";
43 description = "OpenCensus Azure Monitor Exporter";
44 license = licenses.asl20;
45 maintainers = with maintainers; [
46 billhuang
47 evilmav
48 ];
49 };
50}