8 , opentelemetry-test-utils
15 self = buildPythonPackage rec {
16 pname = "opentelemetry-api";
18 disabled = pythonOlder "3.7";
20 # to avoid breakage, every package in opentelemetry-python must inherit this version, src, and meta
21 src = fetchFromGitHub {
22 owner = "open-telemetry";
23 repo = "opentelemetry-python";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-tOg3G6BjHInY5TFYyS7/JA4mQajeP0b1QjrZBGqiqnM=";
28 sourceRoot = "${src.name}/opentelemetry-api";
37 propagatedBuildInputs = [
48 opentelemetry-test-utils
52 pythonImportsCheck = [ "opentelemetry" ];
56 # Enable tests via passthru to avoid cyclic dependency with opentelemetry-test-utils.
57 passthru.tests.${self.pname} = self.overridePythonAttrs { doCheck = true; };
60 homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/opentelemetry-api";
61 description = "OpenTelemetry Python API";
62 changelog = "https://github.com/open-telemetry/opentelemetry-python/releases/tag/${self.src.rev}";
63 license = licenses.asl20;
64 maintainers = teams.deshaw.members ++ [ maintainers.natsukium ];