From 512b70f0f3745719c1f07d9484d40c7e0b3f2410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 13 Oct 2025 21:01:54 -0700 Subject: [PATCH] browsr: 1.21.0 -> 1.22.1 Diff: https://github.com/juftin/browsr/compare/v1.21.0...v1.22.1 Changelog: https://github.com/juftin/browsr/releases/tag/v1.22.1 --- pkgs/by-name/br/browsr/package.nix | 36 +++++++++++++++++------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/br/browsr/package.nix b/pkgs/by-name/br/browsr/package.nix index 7cef53974cd7..15a8007156e6 100644 --- a/pkgs/by-name/br/browsr/package.nix +++ b/pkgs/by-name/br/browsr/package.nix @@ -1,28 +1,38 @@ { lib, - python3, + python3Packages, fetchFromGitHub, + fetchpatch, extras ? [ "all" ], }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "browsr"; - version = "1.21.0"; + version = "1.22.1"; pyproject = true; src = fetchFromGitHub { owner = "juftin"; repo = "browsr"; tag = "v${version}"; - hash = "sha256-76OzJOunZRVSGalQiyX+TSukD8rRIFHxA713NqOn3PY="; + hash = "sha256-eISOADs++ZF62qkWbhFZu6JkEVtTytg3q5nbwS2m+8g="; }; - nativeBuildInputs = with python3.pkgs; [ + patches = [ + # https://github.com/juftin/browsr/pull/55 + (fetchpatch { + name = "textual-6-compat.patch"; + url = "https://github.com/juftin/browsr/commit/ab958ac982e14e836a0e44080a53c920ad50b256.patch"; + hash = "sha256-vAJ+M6Eg7N2NV7Cb2DWPYqLJIeq/DY1COECEQOnkpXE="; + }) + ]; + + build-system = with python3Packages; [ hatchling ]; - propagatedBuildInputs = - with python3.pkgs; + dependencies = + with python3Packages; [ art click @@ -38,7 +48,7 @@ python3.pkgs.buildPythonApplication rec { ] ++ lib.attrVals extras optional-dependencies; - optional-dependencies = with python3.pkgs; { + optional-dependencies = with python3Packages; { all = [ pyarrow textual-universal-directorytree.optional-dependencies.remote @@ -51,13 +61,15 @@ python3.pkgs.buildPythonApplication rec { ]; }; - nativeCheckInputs = with python3.pkgs; [ + nativeCheckInputs = with python3Packages; [ + pytest-cov-stub pytest-textual-snapshot pytestCheckHook ]; pythonRelaxDeps = [ "art" + "click" "pandas" "pymupdf" "pyperclip" @@ -71,18 +83,12 @@ python3.pkgs.buildPythonApplication rec { "browsr" ]; - pytestFlags = [ - "--snapshot-update" - ]; - disabledTests = [ # Tests require internet access "test_github_screenshot" "test_github_screenshot_license" "test_textual_app_context_path_github" "test_mkdocs_screenshot" - # Different output - "test_textual_app_context_path" ]; meta = {