Loading pkgs/development/python-modules/gradio-pdf/default.nix +7 −7 Original line number Diff line number Diff line Loading @@ -11,16 +11,16 @@ buildPythonPackage rec { pname = "gradio-pdf"; version = "0.0.15"; format = "pyproject"; version = "0.0.17"; pyproject = true; src = fetchPypi { pname = "gradio_pdf"; inherit version; hash = "sha256-R+4CDJo84/+PUTTxoz9CsZlHUVsldgjufWsRkALrfN4="; hash = "sha256-LoVcwE7eGcK5Nc6qKTnrnI+rNlsDbekhKUP+Fzq2SQ8="; }; nativeBuildInputs = [ build-system = [ hatch-fancy-pypi-readme hatch-requirements-txt hatchling Loading @@ -36,10 +36,10 @@ buildPythonPackage rec { # tested in `gradio` doCheck = false; meta = with lib; { meta = { 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 ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pbsds ]; }; } pkgs/development/python-modules/gradio/client.nix +6 −5 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ buildPythonPackage rec { pname = "gradio-client"; version = "1.3.0"; version = "1.4.0"; pyproject = true; disabled = pythonOlder "3.8"; Loading @@ -40,7 +40,7 @@ buildPythonPackage rec { # not to be confused with @gradio/client@${version} rev = "refs/tags/gradio_client@${version}"; sparseCheckout = [ "client/python" ]; hash = "sha256-UZQWguUN3l0cj2wb2f7A61RTLy9nPYcIEwHIo+F1kR0="; hash = "sha256-pS7yrqBuq/Pe7sEfReAM6OL2qFQVA+vWra36UuhyDkk="; }; prePatch = '' cd client/python Loading Loading @@ -108,10 +108,11 @@ buildPythonPackage rec { extraArgs = [ "--version-regex" "gradio_client@(.*)" ]; }; meta = with lib; { meta = { homepage = "https://www.gradio.app/"; changelog = "https://github.com/gradio-app/gradio/releases/tag/gradio_client@${version}"; description = "Lightweight library to use any Gradio app as an API"; license = licenses.asl20; maintainers = with maintainers; [ pbsds ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pbsds ]; }; } pkgs/development/python-modules/gradio/conftest-skip-network-errors.py +2 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,8 @@ def pytest_runtest_makereport(item, call): for exc in iterate_exc_chain(call.excinfo.value): if isinstance(exc, NixNetworkAccessDeniedError): tr.outcome, tr.wasxfail = 'skipped', "reason: Requires network access." if isinstance(exc, socket.gaierror): tr.outcome, tr.wasxfail = 'skipped', "reason: Requires network access." if isinstance(exc, httpx.ConnectError): tr.outcome, tr.wasxfail = 'skipped', "reason: Requires network access." if isinstance(exc, FileNotFoundError): # gradio specific Loading pkgs/development/python-modules/gradio/default.nix +10 −7 Original line number Diff line number Diff line Loading @@ -64,15 +64,15 @@ buildPythonPackage rec { pname = "gradio"; version = "4.44.1"; format = "pyproject"; version = "5.1.0"; pyproject = true; disabled = pythonOlder "3.7"; # We use the Pypi release, since it provides prebuilt webui assets src = fetchPypi { inherit pname version; hash = "sha256-popSSYrGtj+IZO+Ev3hmpw59B+vpE+35IeHSo3CK1a4="; hash = "sha256-0hU2aObeLfegG7M/AaB0/HcW7IY8QPRy2OQ5Q57x4VM="; }; # fix packaging.ParserSyntaxError, which can't handle comments Loading @@ -95,7 +95,7 @@ buildPythonPackage rec { "ruff" ]; nativeBuildInputs = [ build-system = [ hatchling hatch-requirements-txt hatch-fancy-pypi-readme Loading Loading @@ -172,6 +172,7 @@ buildPythonPackage rec { disabledTests = [ # Actually broken "test_mount_gradio_app" "test_processing_utils_backwards_compatibility" # type error # requires network, it caught our xfail exception "test_error_analytics_successful" Loading Loading @@ -284,14 +285,16 @@ buildPythonPackage rec { pythonRemoveDeps = (old.pythonRemoveDeps or [ ]) ++ [ "gradio-client" ]; doInstallCheck = false; doCheck = false; preCheck = ""; pythonImportsCheck = null; dontCheckRuntimeDeps = true; }); meta = with lib; { meta = { homepage = "https://www.gradio.app/"; changelog = "https://github.com/gradio-app/gradio/releases/tag/gradio@${version}"; description = "Python library for easily interacting with trained machine learning models"; license = licenses.asl20; maintainers = with maintainers; [ pbsds ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pbsds ]; }; } Loading
pkgs/development/python-modules/gradio-pdf/default.nix +7 −7 Original line number Diff line number Diff line Loading @@ -11,16 +11,16 @@ buildPythonPackage rec { pname = "gradio-pdf"; version = "0.0.15"; format = "pyproject"; version = "0.0.17"; pyproject = true; src = fetchPypi { pname = "gradio_pdf"; inherit version; hash = "sha256-R+4CDJo84/+PUTTxoz9CsZlHUVsldgjufWsRkALrfN4="; hash = "sha256-LoVcwE7eGcK5Nc6qKTnrnI+rNlsDbekhKUP+Fzq2SQ8="; }; nativeBuildInputs = [ build-system = [ hatch-fancy-pypi-readme hatch-requirements-txt hatchling Loading @@ -36,10 +36,10 @@ buildPythonPackage rec { # tested in `gradio` doCheck = false; meta = with lib; { meta = { 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 ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pbsds ]; }; }
pkgs/development/python-modules/gradio/client.nix +6 −5 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ buildPythonPackage rec { pname = "gradio-client"; version = "1.3.0"; version = "1.4.0"; pyproject = true; disabled = pythonOlder "3.8"; Loading @@ -40,7 +40,7 @@ buildPythonPackage rec { # not to be confused with @gradio/client@${version} rev = "refs/tags/gradio_client@${version}"; sparseCheckout = [ "client/python" ]; hash = "sha256-UZQWguUN3l0cj2wb2f7A61RTLy9nPYcIEwHIo+F1kR0="; hash = "sha256-pS7yrqBuq/Pe7sEfReAM6OL2qFQVA+vWra36UuhyDkk="; }; prePatch = '' cd client/python Loading Loading @@ -108,10 +108,11 @@ buildPythonPackage rec { extraArgs = [ "--version-regex" "gradio_client@(.*)" ]; }; meta = with lib; { meta = { homepage = "https://www.gradio.app/"; changelog = "https://github.com/gradio-app/gradio/releases/tag/gradio_client@${version}"; description = "Lightweight library to use any Gradio app as an API"; license = licenses.asl20; maintainers = with maintainers; [ pbsds ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pbsds ]; }; }
pkgs/development/python-modules/gradio/conftest-skip-network-errors.py +2 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,8 @@ def pytest_runtest_makereport(item, call): for exc in iterate_exc_chain(call.excinfo.value): if isinstance(exc, NixNetworkAccessDeniedError): tr.outcome, tr.wasxfail = 'skipped', "reason: Requires network access." if isinstance(exc, socket.gaierror): tr.outcome, tr.wasxfail = 'skipped', "reason: Requires network access." if isinstance(exc, httpx.ConnectError): tr.outcome, tr.wasxfail = 'skipped', "reason: Requires network access." if isinstance(exc, FileNotFoundError): # gradio specific Loading
pkgs/development/python-modules/gradio/default.nix +10 −7 Original line number Diff line number Diff line Loading @@ -64,15 +64,15 @@ buildPythonPackage rec { pname = "gradio"; version = "4.44.1"; format = "pyproject"; version = "5.1.0"; pyproject = true; disabled = pythonOlder "3.7"; # We use the Pypi release, since it provides prebuilt webui assets src = fetchPypi { inherit pname version; hash = "sha256-popSSYrGtj+IZO+Ev3hmpw59B+vpE+35IeHSo3CK1a4="; hash = "sha256-0hU2aObeLfegG7M/AaB0/HcW7IY8QPRy2OQ5Q57x4VM="; }; # fix packaging.ParserSyntaxError, which can't handle comments Loading @@ -95,7 +95,7 @@ buildPythonPackage rec { "ruff" ]; nativeBuildInputs = [ build-system = [ hatchling hatch-requirements-txt hatch-fancy-pypi-readme Loading Loading @@ -172,6 +172,7 @@ buildPythonPackage rec { disabledTests = [ # Actually broken "test_mount_gradio_app" "test_processing_utils_backwards_compatibility" # type error # requires network, it caught our xfail exception "test_error_analytics_successful" Loading Loading @@ -284,14 +285,16 @@ buildPythonPackage rec { pythonRemoveDeps = (old.pythonRemoveDeps or [ ]) ++ [ "gradio-client" ]; doInstallCheck = false; doCheck = false; preCheck = ""; pythonImportsCheck = null; dontCheckRuntimeDeps = true; }); meta = with lib; { meta = { homepage = "https://www.gradio.app/"; changelog = "https://github.com/gradio-app/gradio/releases/tag/gradio@${version}"; description = "Python library for easily interacting with trained machine learning models"; license = licenses.asl20; maintainers = with maintainers; [ pbsds ]; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pbsds ]; }; }