depot/third_party/nixpkgs/pkgs/development/python-modules/gradio-pdf/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
970 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-fancy-pypi-readme,
hatch-requirements-txt,
hatchling,
gradio,
gradio-client,
}:
buildPythonPackage rec {
pname = "gradio-pdf";
version = "0.0.9";
format = "pyproject";
src = fetchPypi {
pname = "gradio_pdf";
inherit version;
hash = "sha256-3mua+cZBzseXp5jONIy2OSmNpqz4s0Uvx5oW/eKgP1Y=";
};
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 ];
};
}