synix/pkgs/marker-pdf/pdftext.nix
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

43 lines
725 B
Nix

{
lib,
python,
fetchPypi,
}:
python.pkgs.buildPythonApplication rec {
pname = "pdftext";
version = "0.6.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-q1xd/g8ft43h24N8ytrB6kGwfOGJD+rZc8moTNr1Tew=";
};
pythonRelaxDeps = [
"pypdfium2"
];
build-system = [
python.pkgs.poetry-core
];
dependencies = with python.pkgs; [
click
numpy
pydantic
pydantic-settings
pypdfium2
];
pythonImportsCheck = [
"pdftext"
];
meta = {
description = "Extract structured text from pdfs quickly";
homepage = "https://pypi.org/project/pdftext/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
};
}