aithings/packages/gradio-client/default.nix
2024-02-24 19:18:13 +01:00

52 lines
970 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, hatch-fancy-pypi-readme
, hatch-requirements-txt
, hatchling
, fsspec
, httpx
, huggingface-hub
, packaging
, requests
, typing-extensions
, websockets
}:
buildPythonPackage rec {
pname = "gradio-client";
version = "0.7.0";
format = "pyproject";
src = fetchPypi {
pname = "gradio_client";
inherit version;
hash = "sha256-+MNVJzfaWocluz4b6hD3e703gj8NeU1BDphe9xJyCaw=";
};
nativeBuildInputs = [
hatch-fancy-pypi-readme
hatch-requirements-txt
hatchling
];
propagatedBuildInputs = [
fsspec
httpx
huggingface-hub
packaging
requests
typing-extensions
websockets
];
pythonImportsCheck = [ "gradio_client" ];
meta = with lib; {
description = "Python library for easily interacting with trained machine learning models";
homepage = "https://github.com/gradio-app/gradio";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}