Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation-flask / default.nix
blob0e1daa3f3a91c5aeda3a5f0d53bae02f5290706f
1 { buildPythonPackage
2 , flask
3 , hatchling
4 , opentelemetry-api
5 , opentelemetry-instrumentation
6 , opentelemetry-instrumentation-wsgi
7 , opentelemetry-semantic-conventions
8 , opentelemetry-test-utils
9 , opentelemetry-util-http
10 , packaging
11 , pytestCheckHook
12 , pythonOlder
15 buildPythonPackage {
16   inherit (opentelemetry-instrumentation) version src;
17   pname = "opentelemetry-instrumentation-flask";
18   pyproject = true;
20   disabled = pythonOlder "3.8";
22   sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-flask";
24   build-system = [ hatchling ];
26   dependencies = [
27     flask
28     opentelemetry-api
29     opentelemetry-instrumentation
30     opentelemetry-instrumentation-wsgi
31     opentelemetry-semantic-conventions
32     opentelemetry-util-http
33     packaging
34   ];
36   nativeCheckInputs = [
37     opentelemetry-test-utils
38     pytestCheckHook
39   ];
41   pythonImportsCheck = [ "opentelemetry.instrumentation.flask" ];
43   meta = opentelemetry-instrumentation.meta // {
44     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-flask";
45     description = "Flask Middleware for OpenTelemetry based on the WSGI middleware";
46   };