mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 13:06:32 +01:00
23 lines
441 B
Nix
23 lines
441 B
Nix
{
|
|
buildPythonPackage,
|
|
logfire,
|
|
|
|
# build system
|
|
hatchling,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "logfire-api";
|
|
inherit (logfire) version src;
|
|
pyproject = true;
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/logfire-api";
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
pythonImportsCheck = [ "logfire_api" ];
|
|
|
|
meta = logfire.meta // {
|
|
description = "Shim for the Logfire SDK which does nothing unless Logfire is installed";
|
|
};
|
|
})
|