python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation-asgi / default.nix
blobac50e8d721837656433e9ce34a5ef1dabefd596a
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 = [ hatchling ];
25   dependencies = [
26     asgiref
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   # Tests have issues starting with 0.47b0
39   doCheck = false;
41   pythonImportsCheck = [ "opentelemetry.instrumentation.asgi" ];
43   meta = opentelemetry-instrumentation.meta // {
44     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-asgi";
45     description = "ASGI instrumentation for OpenTelemetry";
46   };