1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatch-fancy-pypi-readme,
6 hatch-requirements-txt,
7 hatchling,
8 gradio,
9 gradio-client,
10}:
11
12buildPythonPackage rec {
13 pname = "gradio-pdf";
14 version = "0.0.7";
15 format = "pyproject";
16
17 src = fetchPypi {
18 pname = "gradio_pdf";
19 inherit version;
20 hash = "sha256-3OJiBnp79woCUtiNiaePwfJCAS42WYkv9GFeScesFv8=";
21 };
22
23 nativeBuildInputs = [
24 hatch-fancy-pypi-readme
25 hatch-requirements-txt
26 hatchling
27 ];
28
29 dependencies = [ gradio-client ];
30
31 buildInputs = [ gradio.sans-reverse-dependencies ];
32 disallowedReferences = [ gradio.sans-reverse-dependencies ];
33
34 pythonImportsCheck = [ "gradio_pdf" ];
35
36 # tested in `gradio`
37 doCheck = false;
38
39 meta = with lib; {
40 description = "Python library for easily interacting with trained machine learning models";
41 homepage = "https://pypi.org/project/gradio-pdf/";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ pbsds ];
44 };
45}