about summary refs log tree commit diff
path: root/pkgs/development/python-modules/opencensus-ext-azure/default.nix
blob: dc0aa827b99ba8f9e86c487d070e0469ba315b91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  buildPythonPackage,
  fetchPypi,
  azure-core,
  azure-identity,
  opencensus,
  psutil,
  requests,
}:

buildPythonPackage rec {
  pname = "opencensus-ext-azure";
  version = "1.1.13";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-rsMEchdwBTebpWpwKgl9YYxfV1WOG7ZnbsdflIEwaSo=";
  };

  propagatedBuildInputs = [
    azure-core
    azure-identity
    opencensus
    psutil
    requests
  ];

  pythonImportsCheck = [ "opencensus.ext.azure" ];

  doCheck = false; # tests are not included in the PyPi tarball

  meta = with lib; {
    homepage = "https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-azure";
    description = "OpenCensus Azure Monitor Exporter";
    license = licenses.asl20;
    maintainers = with maintainers; [
      billhuang
      evilmav
    ];
  };
}