159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
hatchling,
|
|
opentelemetry-api,
|
|
opentelemetry-instrumentation,
|
|
opentelemetry-instrumentation-dbapi,
|
|
opentelemetry-test-utils,
|
|
psycopg2,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (opentelemetry-instrumentation) version src;
|
|
pname = "opentelemetry-instrumentation-psycopg2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-psycopg2";
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
psycopg2
|
|
opentelemetry-api
|
|
opentelemetry-instrumentation
|
|
opentelemetry-instrumentation-dbapi
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
opentelemetry-test-utils
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "opentelemetry.instrumentation.psycopg2" ];
|
|
|
|
meta = opentelemetry-instrumentation.meta // {
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-psycopg2";
|
|
description = "OpenTelemetry Psycopg Instrumentation";
|
|
};
|
|
}
|