Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation-wsgi / default.nix
blob0b1fda0276c9760547b0ff50e5229f4f39035d8d
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , hatchling
5 , opentelemetry-api
6 , opentelemetry-instrumentation
7 , opentelemetry-semantic-conventions
8 , opentelemetry-test-utils
9 , opentelemetry-util-http
10 , pytestCheckHook
13 buildPythonPackage {
14   inherit (opentelemetry-instrumentation) version src;
15   pname = "opentelemetry-instrumentation-wsgi";
16   disabled = pythonOlder "3.7";
18   sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-wsgi";
20   format = "pyproject";
22   nativeBuildInputs = [
23     hatchling
24   ];
26   propagatedBuildInputs = [
27     opentelemetry-instrumentation
28     opentelemetry-api
29     opentelemetry-semantic-conventions
30     opentelemetry-util-http
31   ];
33   nativeCheckInputs = [
34     opentelemetry-test-utils
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [ "opentelemetry.instrumentation.wsgi" ];
40   meta = opentelemetry-instrumentation.meta // {
41     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-wsgi";
42     description = "WSGI Middleware for OpenTelemetry";
43   };