From 5cdf27419298b23166d956881855a187effea86a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 4 Mar 2025 17:09:30 +0100 Subject: [PATCH] python312Packages.shiny: 1.2.1 -> 1.3.0 Diff: https://github.com/posit-dev/py-shiny/compare/refs/tags/v1.2.1...v1.3.0 Changelog: https://github.com/posit-dev/py-shiny/blob/v1.3.0/CHANGELOG.md --- .../python-modules/shiny/default.nix | 51 +++++++++---------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/pkgs/development/python-modules/shiny/default.nix b/pkgs/development/python-modules/shiny/default.nix index 2319e727d095..8c0809a2da3e 100644 --- a/pkgs/development/python-modules/shiny/default.nix +++ b/pkgs/development/python-modules/shiny/default.nix @@ -2,10 +2,12 @@ lib, buildPythonPackage, fetchFromGitHub, - fetchpatch, + + # build-system setuptools, setuptools-scm, + # dependencies appdirs, asgiref, click, @@ -26,42 +28,35 @@ watchfiles, websockets, + # tests anthropic, cacert, google-generativeai, langchain-core, ollama, openai, - pytestCheckHook, - pytest-asyncio, - pytest-playwright, - pytest-xdist, - pytest-timeout, - pytest-rerunfailures, pandas, polars, + pytest-asyncio, + pytest-playwright, + pytest-rerunfailures, + pytest-timeout, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { pname = "shiny"; - version = "1.2.1"; + version = "1.3.0"; pyproject = true; src = fetchFromGitHub { owner = "posit-dev"; repo = "py-shiny"; tag = "v${version}"; - hash = "sha256-8bo2RHuIP7X7EaOlHd+2m4XU287owchAwiqPnpjKFjI="; + hash = "sha256-YCPHjelGPYYo23Vzxy5+8Kn9fVlSZy1Qva7zp93+nzg="; }; - patches = [ - (fetchpatch { - name = "fix-narwhals-test.patch"; - url = "https://github.com/posit-dev/py-shiny/commit/184a9ebd81ff730439513f343576a68f8c1f6eb9.patch"; - hash = "sha256-DsGnuHQXODzGwpe8ZUHeXGzRFxxduwxCRk82RJaYZg0="; - }) - ]; - build-system = [ setuptools setuptools-scm @@ -104,30 +99,32 @@ buildPythonPackage rec { langchain-core ollama openai - pytestCheckHook - pytest-asyncio - pytest-playwright - pytest-xdist - pytest-timeout - pytest-rerunfailures pandas polars + pytest-asyncio + pytest-playwright + pytest-rerunfailures + pytest-timeout + pytest-xdist + pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; disabledTests = [ + # Requires unpackaged brand-yml + "test_theme_from_brand_base_case_compiles" # ValueError: A tokenizer is required to impose `token_limits` on messages "test_chat_message_trimming" - # https://github.com/posit-dev/py-shiny/pull/1791 - "test_as_ollama_message" ]; + __darwinAllowLocalNetworking = true; + meta = { - changelog = "https://github.com/posit-dev/py-shiny/blob/${src.tag}/CHANGELOG.md"; description = "Build fast, beautiful web applications in Python"; - license = lib.licenses.mit; homepage = "https://shiny.posit.co/py"; + changelog = "https://github.com/posit-dev/py-shiny/blob/v${version}/CHANGELOG.md"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ sigmanificient ]; }; }