To avoid breaking any package under the opentelemetry-python repository, we must synchronize their versions. Since opentelemetry-api is the central component of opentelemetry-python, I used it as the source for version, src, and meta.
37 lines
745 B
Nix
37 lines
745 B
Nix
{ lib
|
|
, callPackage
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, asgiref
|
|
, hatchling
|
|
, opentelemetry-api
|
|
, opentelemetry-sdk
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (opentelemetry-api) version src;
|
|
pname = "opentelemetry-test-utils";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
sourceRoot = "source/tests/opentelemetry-test-utils";
|
|
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
asgiref
|
|
opentelemetry-api
|
|
opentelemetry-sdk
|
|
];
|
|
|
|
pythonImportsCheck = [ "opentelemetry.test" ];
|
|
|
|
meta = opentelemetry-api.meta // {
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/tests/opentelemetry-test-utils";
|
|
description = "Test utilities for OpenTelemetry unit tests";
|
|
};
|
|
}
|