Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-test-utils / default.nix
blob4e2405058b86f271d3186a9912ff6265f007db9b
1 { lib
2 , callPackage
3 , buildPythonPackage
4 , pythonOlder
5 , asgiref
6 , hatchling
7 , opentelemetry-api
8 , opentelemetry-sdk
9 }:
11 buildPythonPackage {
12   inherit (opentelemetry-api) version src;
13   pname = "opentelemetry-test-utils";
14   disabled = pythonOlder "3.7";
16   sourceRoot = "${opentelemetry-api.src.name}/tests/opentelemetry-test-utils";
18   format = "pyproject";
20   nativeBuildInputs = [
21     hatchling
22   ];
24   propagatedBuildInputs = [
25     asgiref
26     opentelemetry-api
27     opentelemetry-sdk
28   ];
30   pythonImportsCheck = [ "opentelemetry.test" ];
32   meta = opentelemetry-api.meta // {
33     homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/tests/opentelemetry-test-utils";
34     description = "Test utilities for OpenTelemetry unit tests";
35   };