Gaetan Lepage 2025-06-21 15:08:19 +02:00
parent 1c86961dab
commit 080efd3bc9

View File

@ -2,45 +2,26 @@
lib, lib,
python3Packages, python3Packages,
fetchFromGitHub, fetchFromGitHub,
writableTmpDirAsHomeHook,
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "bagels"; pname = "bagels";
version = "0.3.8"; version = "0.3.9";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "EnhancedJax"; owner = "EnhancedJax";
repo = "bagels"; repo = "bagels";
tag = version; tag = version;
hash = "sha256-dmBu0HSRGs4LmJY2PHNlRf0RdodmN+ZM0brwuiNmPyU="; hash = "sha256-LlEQ0by6Si37e8FvC4agjLy8eanizSA1iq44BaQ8D5o=";
}; };
build-system = with python3Packages; [ build-system = with python3Packages; [
hatchling hatchling
]; ];
pythonRelaxDeps = [ pythonRelaxDeps = true;
"aiohappyeyeballs"
"aiohttp"
"aiosignal"
"attrs"
"blinker"
"click"
"multidict"
"platformdirs"
"propcache"
"pydantic-core"
"pydantic"
"pygments"
"requests"
"rich"
"sqlalchemy"
"textual"
"typing-extensions"
"werkzeug"
"yarl"
];
dependencies = with python3Packages; [ dependencies = with python3Packages; [
aiohappyeyeballs aiohappyeyeballs
@ -84,9 +65,34 @@ python3Packages.buildPythonApplication rec {
yarl 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 = { meta = {
homepage = "https://github.com/EnhancedJax/Bagels"; 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 = '' 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. Bagels expense tracker is a TUI application where you can track and analyse your money flow, with convenience oriented features and a complete interface.
''; '';