Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation-asgi / default.nix
blob7eb2a66797459f03ce774d311224505462eb1c5f
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , asgiref
5 , hatchling
6 , opentelemetry-api
7 , opentelemetry-instrumentation
8 , opentelemetry-semantic-conventions
9 , opentelemetry-test-utils
10 , opentelemetry-util-http
11 , pytestCheckHook
14 buildPythonPackage {
15   inherit (opentelemetry-instrumentation) version src;
16   pname = "opentelemetry-instrumentation-asgi";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-asgi";
23   build-system = [
24     hatchling
25   ];
27   dependencies = [
28     asgiref
29     opentelemetry-instrumentation
30     opentelemetry-api
31     opentelemetry-semantic-conventions
32     opentelemetry-util-http
33   ];
35   nativeCheckInputs = [
36     opentelemetry-test-utils
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [ "opentelemetry.instrumentation.asgi" ];
42   meta = opentelemetry-instrumentation.meta // {
43     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-asgi";
44     description = "ASGI instrumentation for OpenTelemetry";
45   };