mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-13 08:23:25 +00:00
86200041e2
To avoid breaking any package under the opentelemetry-python-contrib repository, we must synchronize their versions. Since opentelemetry-instrumentation is the central component of opentelemetry-python-contrib, I used it as the source for version, src, and meta.
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, hatchling
|
|
, opentelemetry-api
|
|
, opentelemetry-instrumentation
|
|
, opentelemetry-semantic-conventions
|
|
, opentelemetry-test-utils
|
|
, opentelemetry-util-http
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (opentelemetry-instrumentation) version src;
|
|
pname = "opentelemetry-instrumentation-wsgi";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
sourceRoot = "source/instrumentation/opentelemetry-instrumentation-wsgi";
|
|
|
|
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 = opentelemetry-instrumentation.meta // {
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-wsgi";
|
|
description = "WSGI Middleware for OpenTelemetry";
|
|
};
|
|
}
|