blob: af6eedf728d9db361bfc80668b142c1aef07cab0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{
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];
};
}
|