depot/third_party/nixpkgs/pkgs/development/python-modules/gradio-pdf/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

45 lines
971 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-fancy-pypi-readme,
hatch-requirements-txt,
hatchling,
gradio,
gradio-client,
}:
buildPythonPackage rec {
pname = "gradio-pdf";
version = "0.0.15";
format = "pyproject";
src = fetchPypi {
pname = "gradio_pdf";
inherit version;
hash = "sha256-R+4CDJo84/+PUTTxoz9CsZlHUVsldgjufWsRkALrfN4=";
};
nativeBuildInputs = [
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 = 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 ];
};
}