2024-01-13 08:15:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hatch-fancy-pypi-readme
|
|
|
|
, hatch-requirements-txt
|
|
|
|
, hatchling
|
|
|
|
, gradio
|
|
|
|
, gradio-client
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gradio-pdf";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.0.7";
|
2024-01-13 08:15:51 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "gradio_pdf";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-3OJiBnp79woCUtiNiaePwfJCAS42WYkv9GFeScesFv8=";
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
hatch-requirements-txt
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2024-01-13 08:15:51 +00:00
|
|
|
gradio-client
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gradio.sans-reverse-dependencies
|
|
|
|
];
|
|
|
|
disallowedReferences = [
|
|
|
|
gradio.sans-reverse-dependencies
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|