1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatch-fancy-pypi-readme,
6 hatch-requirements-txt,
7 hatchling,
8 gradio,
9 gradio-client,
10}:
11
12buildPythonPackage {
13 pname = "gradio-pdf";
14 version = "0.0.22";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "freddyaboulton";
19 repo = "gradio-pdf";
20 # No source release on Pypi
21 # No tags on GitHub
22 rev = "8833e9cd419d2a5eeff98e3ae8cbe690913bcfce";
23 hash = "sha256-z9rfVnH2qANDp2ukUGSogADbwqQQzCkB7Cp/04UtEpM=";
24 };
25
26 build-system = [
27 hatch-fancy-pypi-readme
28 hatch-requirements-txt
29 hatchling
30 ];
31
32 dependencies = [ gradio-client ];
33
34 buildInputs = [ gradio.sans-reverse-dependencies ];
35 disallowedReferences = [ gradio.sans-reverse-dependencies ];
36
37 pythonImportsCheck = [ "gradio_pdf" ];
38
39 # tested in `gradio`
40 doCheck = false;
41
42 meta = {
43 description = "Python library for easily interacting with trained machine learning models";
44 homepage = "https://pypi.org/project/gradio-pdf/";
45 license = lib.licenses.asl20;
46 maintainers = with lib.maintainers; [ pbsds ];
47 };
48}