python311Packages.gradio-clients: 0.10.1 -> 0.14.0

Also adds an updateScript
This commit is contained in:
Peder Bergebakken Sundt 2024-03-22 20:32:59 +01:00
parent 7bdd743bf8
commit f1bb72c481
1 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, gitUpdater
, pythonOlder
, pythonRelaxDepsHook
# pyproject
@ -27,7 +28,7 @@
buildPythonPackage rec {
pname = "gradio-client";
version = "0.10.1";
version = "0.14.0";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -36,9 +37,9 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "gradio-app";
repo = "gradio";
rev = "refs/tags/gradio_client@${version}";
rev = "refs/tags/@gradio/client@${version}";
sparseCheckout = [ "client/python" ];
hash = "sha256-cRsYqNMmzuybJI823lpUOmNcTdcTO8dJkp3cpjATZQU=";
hash = "sha256-7oC/Z3YUiOFZdv/60q7PkfluV77broRkHgWiY9Vim9Y=";
};
prePatch = ''
cd client/python
@ -95,6 +96,8 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
passthru.updateScript = gitUpdater { rev-prefix = "@gradio/client@"; };
meta = with lib; {
homepage = "https://www.gradio.app/";
description = "Lightweight library to use any Gradio app as an API";