Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation / default.nix
blob965276da78f11891d792665d96b607f533e4bfcb
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , hatchling
6 , opentelemetry-api
7 , opentelemetry-test-utils
8 , setuptools
9 , wrapt
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "opentelemetry-instrumentation";
15   version = "0.44b0";
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   # to avoid breakage, every package in opentelemetry-python-contrib must inherit this version, src, and meta
21   src = fetchFromGitHub {
22     owner = "open-telemetry";
23     repo = "opentelemetry-python-contrib";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-r+k/YdK7YqYme8nKoy3ig3krvZjxYRKgLBkcdEtFy3k=";
26   };
28   sourceRoot = "${src.name}/opentelemetry-instrumentation";
30   build-system = [
31     hatchling
32   ];
34   dependencies = [
35     opentelemetry-api
36     setuptools
37     wrapt
38   ];
40   nativeCheckInputs = [
41     opentelemetry-test-utils
42     pytestCheckHook
43   ];
45   pythonImportsCheck = [ "opentelemetry.instrumentation" ];
47   meta = with lib; {
48     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/opentelemetry-instrumentation";
49     description = "Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python";
50     changelog = "https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/${src.rev}";
51     license = licenses.asl20;
52     maintainers = teams.deshaw.members ++ [ maintainers.natsukium ];
53   };