This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
43
pkgs/marker-pdf/pdftext.nix
Normal file
43
pkgs/marker-pdf/pdftext.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
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; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue