From 7598b63c369a63a6d194a8803c4ffa45f4c8116d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 13 Feb 2024 11:54:00 +0100 Subject: browsr: 1.17.0 -> 1.18.0 Diff: https://github.com/juftin/browsr/compare/refs/tags/v1.17.0...v1.18.0 Changelog: https://github.com/juftin/browsr/releases/tag/refs/tags/v1.18.0 --- pkgs/applications/file-managers/browsr/default.nix | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'pkgs/applications/file-managers') diff --git a/pkgs/applications/file-managers/browsr/default.nix b/pkgs/applications/file-managers/browsr/default.nix index ad35ae555d1a2..b859ab8d7e112 100644 --- a/pkgs/applications/file-managers/browsr/default.nix +++ b/pkgs/applications/file-managers/browsr/default.nix @@ -6,20 +6,19 @@ python3.pkgs.buildPythonApplication rec { pname = "browsr"; - version = "1.17.1"; - format = "pyproject"; + version = "1.18.0"; + pyproject = true; src = fetchFromGitHub { owner = "juftin"; repo = "browsr"; - rev = "v${version}"; - hash = "sha256-FExDKugFP94C3zMnR1V4QDPWeM2OtRH2ei0LNs3h06c="; + rev = "refs/tags/v${version}"; + hash = "sha256-Ygqoz1rNQwhU1/8NsHwQsSCqQ8gYwHEaAuIaVMCtKKA="; }; nativeBuildInputs = with python3.pkgs; [ hatchling pythonRelaxDepsHook - pytestCheckHook ]; propagatedBuildInputs = with python3.pkgs; [ @@ -48,18 +47,31 @@ python3.pkgs.buildPythonApplication rec { ]; }; + nativeCheckInputs = with python3.pkgs; [ + pytest-textual-snapshot + pytestCheckHook + ]; + pythonRelaxDeps = [ "art" "pandas" "pymupdf" "rich-click" + "rich-pixels" + "rich" "textual" ]; - pythonImportsCheck = [ "browsr" ]; + pythonImportsCheck = [ + "browsr" + ]; + + pytestFlagsArray = [ + "--snapshot-update" + ]; - # requires internet access disabledTests = [ + # Tests require internet access "test_github_screenshot" "test_github_screenshot_license" "test_textual_app_context_path_github" -- cgit 1.4.1