Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions pkgs/by-name/cl/claude-code-log/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
fetchFromGitHub,
lib,
python3Packages,
versionCheckHook,
}:

python3Packages.buildPythonApplication (finalAttrs: {
pname = "claude-code-log";
version = "1.4.0";
pyproject = true;
__structuredAttrs = true;

src = fetchFromGitHub {
owner = "daaain";
repo = "claude-code-log";
tag = finalAttrs.version;
hash = "sha256-ZKf3y9AI3xiez2zIWWEmqJnJgLrPy+Dx52Bi8ryhPiY=";
};

build-system = [ python3Packages.hatchling ];

dependencies = with python3Packages; [
click
dateparser
gitpython
jinja2
mistune
packaging
pydantic
pygments
textual
toml
];

nativeCheckInputs = [ versionCheckHook ];

pythonImportsCheck = [
"claude_code_log.cli" # Entrypoint.
"claude_code_log.tui" # Not eagerly imported by the CLI module.
];

meta = {
description = "Convert Claude Code transcript JSONL files into HTML, Markdown, or JSON";
homepage = "https://github.com/daaain/claude-code-log";
changelog = "https://github.com/daaain/claude-code-log/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "claude-code-log";
maintainers = with lib.maintainers; [ samestep ];
};
})
Loading