evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation-django / default.nix
bloba8b14f1cfd2ce723954dd5b808f73d07b2bd8a6a
2   buildPythonPackage,
3   pythonOlder,
4   django,
5   hatchling,
6   opentelemetry-api,
7   opentelemetry-instrumentation,
8   opentelemetry-instrumentation-asgi,
9   opentelemetry-instrumentation-wsgi,
10   opentelemetry-semantic-conventions,
11   opentelemetry-test-utils,
12   opentelemetry-util-http,
13   pytestCheckHook,
16 buildPythonPackage rec {
17   inherit (opentelemetry-instrumentation) version src;
18   pname = "opentelemetry-instrumentation-django";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-django";
25   build-system = [ hatchling ];
27   dependencies = [
28     django
29     opentelemetry-api
30     opentelemetry-instrumentation
31     opentelemetry-instrumentation-wsgi
32     opentelemetry-semantic-conventions
33     opentelemetry-util-http
34   ];
36   optional-dependencies = {
37     asgi = [ opentelemetry-instrumentation-asgi ];
38   };
40   nativeCheckInputs = [
41     opentelemetry-test-utils
42     pytestCheckHook
43   ] ++ optional-dependencies.asgi;
45   pythonImportsCheck = [ "opentelemetry.instrumentation.django" ];
47   meta = opentelemetry-instrumentation.meta // {
48     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-django";
49     description = "OpenTelemetry Instrumentation for Django";
50   };