2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatch-fancy-pypi-readme,
|
|
|
|
hatch-requirements-txt,
|
|
|
|
hatchling,
|
|
|
|
gradio,
|
|
|
|
gradio-client,
|
2024-01-13 08:15:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gradio-pdf";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.0.9";
|
2024-01-13 08:15:51 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "gradio_pdf";
|
|
|
|
inherit version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-3mua+cZBzseXp5jONIy2OSmNpqz4s0Uvx5oW/eKgP1Y=";
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatch-requirements-txt
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ gradio-client ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ gradio.sans-reverse-dependencies ];
|
|
|
|
disallowedReferences = [ gradio.sans-reverse-dependencies ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "gradio_pdf" ];
|
|
|
|
|
|
|
|
# tested in `gradio`
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for easily interacting with trained machine learning models";
|
|
|
|
homepage = "https://pypi.org/project/gradio-pdf/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ pbsds ];
|
|
|
|
};
|
|
|
|
}
|