Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-proto / default.nix
blob21b84dd5898fee0201b46f1b13ad01e35966c6d9
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , hatchling
5 , opentelemetry-api
6 , protobuf
7 , pytestCheckHook
8 }:
10 buildPythonPackage {
11   inherit (opentelemetry-api) version src;
12   pname = "opentelemetry-proto";
13   disabled = pythonOlder "3.7";
15   sourceRoot = "${opentelemetry-api.src.name}/opentelemetry-proto";
17   format = "pyproject";
19   nativeBuildInputs = [
20     hatchling
21   ];
23   propagatedBuildInputs = [
24     protobuf
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [ "opentelemetry.proto" ];
33   meta = opentelemetry-api.meta // {
34     homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/opentelemetry-proto";
35     description = "OpenTelemetry Python Proto";
36   };