2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
42 lines
894 B
Nix
42 lines
894 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, azure-core
|
|
, azure-identity
|
|
, opencensus
|
|
, psutil
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "opencensus-ext-azure";
|
|
version = "1.1.11";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-IdTU0FGdSCOdBBQskLalH17MBDaE64DPoKcBqiM0YHM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|