mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +00:00
python3Packages.opentelemetry-instrumentation-wsgi: init at 0.39b0
This commit is contained in:
parent
fe3877185b
commit
c242976296
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, hatchling
|
||||
, opentelemetry-api
|
||||
, opentelemetry-instrumentation
|
||||
, opentelemetry-semantic-conventions
|
||||
, opentelemetry-test-utils
|
||||
, opentelemetry-util-http
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "opentelemetry-instrumentation-wsgi";
|
||||
version = "0.39b0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "open-telemetry";
|
||||
repo = "opentelemetry-python-contrib";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-DBZGXY8Y208YC/guk0qUB04UA/JFAtiv3kjsikskTRs=";
|
||||
sparseCheckout = [ "/instrumentation/${pname}" ];
|
||||
} + "/instrumentation/${pname}";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
opentelemetry-instrumentation
|
||||
opentelemetry-api
|
||||
opentelemetry-semantic-conventions
|
||||
opentelemetry-util-http
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
opentelemetry-test-utils
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "opentelemetry.instrumentation.wsgi" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-wsgi";
|
||||
description = "WSGI Middleware for OpenTelemetry";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.deshaw.members;
|
||||
};
|
||||
}
|
@ -7108,6 +7108,8 @@ self: super: with self; {
|
||||
|
||||
opentelemetry-instrumentation = callPackage ../development/python-modules/opentelemetry-instrumentation { };
|
||||
|
||||
opentelemetry-instrumentation-wsgi = callPackage ../development/python-modules/opentelemetry-instrumentation-wsgi { };
|
||||
|
||||
opentelemetry-proto = callPackage ../development/python-modules/opentelemetry-proto { };
|
||||
|
||||
opentelemetry-semantic-conventions = callPackage ../development/python-modules/opentelemetry-semantic-conventions { };
|
||||
|
Loading…
Reference in New Issue
Block a user