e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
50 lines
987 B
Nix
50 lines
987 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hatch-fancy-pypi-readme
|
|
, hatch-requirements-txt
|
|
, hatchling
|
|
, gradio
|
|
, gradio-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gradio-pdf";
|
|
version = "0.0.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
pname = "gradio_pdf";
|
|
inherit version;
|
|
hash = "sha256-l9bcH/6paEdKk9Q7HM3ap9MI1Qi7rPZ/ucAibBUEPKI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatch-fancy-pypi-readme
|
|
hatch-requirements-txt
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|