mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 20:43:28 +00:00
python3Packages.gradio: 4.9.1 -> 4.19.2, gradio-client: 0.7.3 -> 0.10.1
This commit is contained in:
parent
6780926802
commit
54b18b4e60
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gradio-client";
|
pname = "gradio-client";
|
||||||
version = "0.7.3";
|
version = "0.10.1";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
@ -36,10 +36,9 @@ buildPythonPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gradio-app";
|
owner = "gradio-app";
|
||||||
repo = "gradio";
|
repo = "gradio";
|
||||||
#rev = "refs/tags/v${gradio.version}";
|
rev = "refs/tags/gradio_client@${version}";
|
||||||
rev = "dc131b64f05062447643217819ca630e483a11df"; # v4.9.1 is not tagged...
|
|
||||||
sparseCheckout = [ "client/python" ];
|
sparseCheckout = [ "client/python" ];
|
||||||
hash = "sha256-Zp1Zl53Va0pyyZEHDUpnldi4dtH2uss7PZQD+Le8+cA=";
|
hash = "sha256-cRsYqNMmzuybJI823lpUOmNcTdcTO8dJkp3cpjATZQU=";
|
||||||
};
|
};
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
cd client/python
|
cd client/python
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gradio";
|
pname = "gradio";
|
||||||
version = "4.9.1";
|
version = "4.19.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
@ -66,7 +66,7 @@ buildPythonPackage rec {
|
|||||||
# and upstream has stopped tagging releases since 3.41.0
|
# and upstream has stopped tagging releases since 3.41.0
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-KosxlmU5pYvuy5zysscuWM25IGXin7RLGEM9V2xPQrU=";
|
hash = "sha256-b+WBW7Tfru0fx0Ijv/2R2nChtGMVivjF4D0BuwkGih0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# fix packaging.ParserSyntaxError, which can't handle comments
|
# fix packaging.ParserSyntaxError, which can't handle comments
|
||||||
@ -81,6 +81,12 @@ buildPythonPackage rec {
|
|||||||
"tomlkit"
|
"tomlkit"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonRemoveDeps = [
|
||||||
|
# our package is presented as a binary, not a python lib - and
|
||||||
|
# this isn't a real runtime dependency
|
||||||
|
"ruff"
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pythonRelaxDepsHook
|
pythonRelaxDepsHook
|
||||||
hatchling
|
hatchling
|
||||||
@ -164,6 +170,9 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
# shap is too often broken in nixpkgs
|
# shap is too often broken in nixpkgs
|
||||||
"test_shapley_text"
|
"test_shapley_text"
|
||||||
|
|
||||||
|
# fails without network
|
||||||
|
"test_download_if_url_correct_parse"
|
||||||
];
|
];
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# 100% touches network
|
# 100% touches network
|
||||||
@ -193,7 +202,6 @@ buildPythonPackage rec {
|
|||||||
gradio-pdf = null;
|
gradio-pdf = null;
|
||||||
})).overridePythonAttrs (old: {
|
})).overridePythonAttrs (old: {
|
||||||
pname = old.pname + "-sans-client";
|
pname = old.pname + "-sans-client";
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ pythonRelaxDepsHook ];
|
|
||||||
pythonRemoveDeps = (old.pythonRemoveDeps or []) ++ [ "gradio-client" ];
|
pythonRemoveDeps = (old.pythonRemoveDeps or []) ++ [ "gradio-client" ];
|
||||||
doInstallCheck = false;
|
doInstallCheck = false;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user