e434fb5db4
Diff: https://github.com/freddyaboulton/gradio-pdf/compare/8833e9cd419d2a5eeff98e3ae8cbe690913bcfce...57deb0bd2823a9a75c5da498cc39a85f8fd4ff02
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatch-fancy-pypi-readme,
|
|
hatch-requirements-txt,
|
|
hatchling,
|
|
gradio,
|
|
gradio-client,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "gradio-pdf";
|
|
version = "0.0.23";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "freddyaboulton";
|
|
repo = "gradio-pdf";
|
|
# No source release on Pypi
|
|
# No tags on GitHub
|
|
rev = "57deb0bd2823a9a75c5da498cc39a85f8fd4ff02";
|
|
hash = "sha256-FzO8jKZw4EBqmsQ0xXqj0lqSHXxKk+rZjuluyNJVPYk=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-fancy-pypi-readme
|
|
hatch-requirements-txt
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [ gradio-client ];
|
|
|
|
buildInputs = [ gradio.sans-reverse-dependencies ];
|
|
disallowedReferences = [ gradio.sans-reverse-dependencies ];
|
|
|
|
pythonImportsCheck = [ "gradio_pdf" ];
|
|
|
|
# tested in `gradio`
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python library for easily interacting with trained machine learning models";
|
|
homepage = "https://pypi.org/project/gradio-pdf/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ pbsds ];
|
|
};
|
|
}
|