mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
494522a2a4
This continues where eaafc0f7ea
.
33 lines
714 B
Nix
33 lines
714 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, hatchling
|
|
, opentelemetry-api
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (opentelemetry-api) version src;
|
|
pname = "opentelemetry-semantic-conventions";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
sourceRoot = "${opentelemetry-api.src.name}/opentelemetry-semantic-conventions";
|
|
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "opentelemetry.semconv" ];
|
|
|
|
meta = opentelemetry-api.meta // {
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/opentelemetry-semantic-conventions";
|
|
description = "OpenTelemetry Semantic Conventions";
|
|
};
|
|
}
|