Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation-django / default.nix
blob39058d16e25948b650330a4711ece8f155a4c920
1 { lib
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 {
17   inherit (opentelemetry-instrumentation) version src;
18   pname = "opentelemetry-instrumentation-django";
19   disabled = pythonOlder "3.7";
21   sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-django";
23   format = "pyproject";
25   nativeBuildInputs = [
26     hatchling
27   ];
29   propagatedBuildInputs = [
30     django
31     opentelemetry-api
32     opentelemetry-instrumentation
33     opentelemetry-instrumentation-asgi
34     opentelemetry-instrumentation-wsgi
35     opentelemetry-semantic-conventions
36     opentelemetry-util-http
37   ];
39   nativeCheckInputs = [
40     opentelemetry-test-utils
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [ "opentelemetry.instrumentation.django" ];
46   meta = opentelemetry-instrumentation.meta // {
47     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-django";
48     description = "OpenTelemetry Instrumentation for Django";
49   };