Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 37 lines 1.0 kB view raw
1{ 2 buildPythonPackage, 3 pytestCheckHook, 4 hatchling, 5 opentelemetry-api, 6 opentelemetry-instrumentation, 7 opentelemetry-semantic-conventions, 8 opentelemetry-test-utils, 9}: 10 11buildPythonPackage { 12 inherit (opentelemetry-instrumentation) version src; 13 pname = "opentelemetry-instrumentation-dbapi"; 14 pyproject = true; 15 16 sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-dbapi"; 17 18 build-system = [ hatchling ]; 19 20 dependencies = [ 21 opentelemetry-api 22 opentelemetry-instrumentation 23 opentelemetry-semantic-conventions 24 ]; 25 26 nativeCheckInputs = [ 27 opentelemetry-test-utils 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "opentelemetry.instrumentation.dbapi" ]; 32 33 meta = opentelemetry-instrumentation.meta // { 34 homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-dbapi"; 35 description = "OpenTelemetry Database API instrumentation"; 36 }; 37}