From 080efd3bc974dae0d51f6b0dbf58d6726342371c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 21 Jun 2025 15:08:19 +0200 Subject: [PATCH] bagels: 0.3.8 -> 0.3.9 Diff: https://github.com/EnhancedJax/bagels/compare/refs/tags/0.3.8...refs/tags/0.3.9 Changelog: https://github.com/EnhancedJax/Bagels/releases/tag/0.3.9 --- pkgs/by-name/ba/bagels/package.nix | 54 +++++++++++++++++------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/ba/bagels/package.nix b/pkgs/by-name/ba/bagels/package.nix index 02fdb79568bd..e387b98b54ef 100644 --- a/pkgs/by-name/ba/bagels/package.nix +++ b/pkgs/by-name/ba/bagels/package.nix @@ -2,45 +2,26 @@ lib, python3Packages, fetchFromGitHub, + writableTmpDirAsHomeHook, }: python3Packages.buildPythonApplication rec { pname = "bagels"; - version = "0.3.8"; + version = "0.3.9"; pyproject = true; src = fetchFromGitHub { owner = "EnhancedJax"; repo = "bagels"; tag = version; - hash = "sha256-dmBu0HSRGs4LmJY2PHNlRf0RdodmN+ZM0brwuiNmPyU="; + hash = "sha256-LlEQ0by6Si37e8FvC4agjLy8eanizSA1iq44BaQ8D5o="; }; build-system = with python3Packages; [ hatchling ]; - pythonRelaxDeps = [ - "aiohappyeyeballs" - "aiohttp" - "aiosignal" - "attrs" - "blinker" - "click" - "multidict" - "platformdirs" - "propcache" - "pydantic-core" - "pydantic" - "pygments" - "requests" - "rich" - "sqlalchemy" - "textual" - "typing-extensions" - "werkzeug" - "yarl" - ]; + pythonRelaxDeps = true; dependencies = with python3Packages; [ aiohappyeyeballs @@ -84,9 +65,34 @@ python3Packages.buildPythonApplication rec { yarl ]; + nativeCheckInputs = + [ + writableTmpDirAsHomeHook + ] + ++ (with python3Packages; [ + freezegun + pytestCheckHook + ]); + + disabledTests = [ + # AssertionError: assert 1 == 0 + "test_delete_category" + + # AttributeError: 'NoneType' object has no attribute 'defaults' + "test_basic_balance_calculation" + "test_combined_balance_calculation" + "test_get_days_in_period" + "test_get_period_average" + "test_get_period_figures" + "test_get_start_end_of_period" + "test_get_start_end_of_week" + "test_split_balance_calculation" + "test_transfer_balance_calculation" + ]; + meta = { homepage = "https://github.com/EnhancedJax/Bagels"; - description = "Powerful expense tracker that lives in your terminal."; + description = "Powerful expense tracker that lives in your terminal"; longDescription = '' Bagels expense tracker is a TUI application where you can track and analyse your money flow, with convenience oriented features and a complete interface. '';