{ lib, buildPythonPackage, sources, hatchling, pythonOlder, }: buildPythonPackage rec { pname = "logfire-api"; version = sources.logfire.rev; pyproject = true; disabled = pythonOlder "3.8"; src = sources.logfire; sourceRoot = "logfire-src/logfire-api"; build-system = [hatchling]; pythonImportsCheck = ["logfire_api"]; meta = { description = "Shim for the Logfire SDK which does nothing unless Logfire is installed"; homepage = "https://pypi.org/project/logfire-api/"; changelog = "https://github.com/pydantic/logfire/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [bsima]; }; }