From 8a56b248d9cc34d8846854eae8fcb1a53b8e35ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 22 Feb 2025 20:18:05 -0800 Subject: [PATCH 1/3] python313Packages.shiny: fix tests --- pkgs/development/python-modules/shiny/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/shiny/default.nix b/pkgs/development/python-modules/shiny/default.nix index 07d667fcc20d..2319e727d095 100644 --- a/pkgs/development/python-modules/shiny/default.nix +++ b/pkgs/development/python-modules/shiny/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, setuptools, setuptools-scm, @@ -53,6 +54,14 @@ buildPythonPackage rec { hash = "sha256-8bo2RHuIP7X7EaOlHd+2m4XU287owchAwiqPnpjKFjI="; }; + 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 From f2f4f6d37e8b1509f24207478f3d227702e4a490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 22 Feb 2025 20:24:24 -0800 Subject: [PATCH 2/3] python313Packages.faicons: init at 0.2.2 --- .../python-modules/faicons/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/faicons/default.nix diff --git a/pkgs/development/python-modules/faicons/default.nix b/pkgs/development/python-modules/faicons/default.nix new file mode 100644 index 000000000000..4f3e42ae7dd1 --- /dev/null +++ b/pkgs/development/python-modules/faicons/default.nix @@ -0,0 +1,41 @@ +{ + buildPythonPackage, + fetchFromGitHub, + htmltools, + lib, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "faicons"; + version = "0.2.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "posit-dev"; + repo = "py-faicons"; + tag = "v${version}"; + hash = "sha256-okkZ8anirjcZcZeB3XjvNJpiYQEau+o6dmCGqFBD8XY="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + htmltools + ]; + + pythonImportsCheck = [ "faicons" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + changelog = "https://github.com/posit-dev/py-faicons/blob/${src.tag}/CHANGELOG.md"; + description = "Interface to Font-Awesome for use in Shiny"; + homepage = "https://github.com/posit-dev/py-faicons"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 402446041f29..f59f5cdf7746 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4488,6 +4488,8 @@ self: super: with self; { factory-boy = callPackage ../development/python-modules/factory-boy { }; + faicons = callPackage ../development/python-modules/faicons { }; + fairscale = callPackage ../development/python-modules/fairscale { }; fairseq = callPackage ../development/python-modules/fairseq { }; From 014021fd282a73005f2352390d2eed5c2db0c758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 22 Feb 2025 20:24:49 -0800 Subject: [PATCH 3/3] python313Packages.great-tables: fix build --- pkgs/development/python-modules/great-tables/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/great-tables/default.nix b/pkgs/development/python-modules/great-tables/default.nix index 8d3439970604..26b5b216e3c7 100644 --- a/pkgs/development/python-modules/great-tables/default.nix +++ b/pkgs/development/python-modules/great-tables/default.nix @@ -10,6 +10,8 @@ # dependencies babel, commonmark, + css-inline, + faicons, htmltools, importlib-metadata, importlib-resources, @@ -25,6 +27,7 @@ pytestCheckHook, pytest-cov-stub, requests, + selenium, shiny, syrupy, }: @@ -49,6 +52,8 @@ buildPythonPackage rec { dependencies = [ babel commonmark + css-inline + faicons htmltools importlib-metadata importlib-resources @@ -67,12 +72,14 @@ buildPythonPackage rec { pytestCheckHook pytest-cov-stub requests + selenium shiny syrupy ]; disabledTests = [ # require selenium with chrome driver: + "test_save_custom_webdriver" "test_save_image_file" "test_save_non_png" ];