From 489439d7eb7929f1043c83e55cd2aa10cba77dd8 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 2 Mar 2026 00:54:34 +0200 Subject: [PATCH] cgt-calc: 1.14.0{,-unstable-2026-02-23} --- pkgs/by-name/cg/cgt-calc/package.nix | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/cg/cgt-calc/package.nix b/pkgs/by-name/cg/cgt-calc/package.nix index f15ae683158e..f2084bb7fc0a 100644 --- a/pkgs/by-name/cg/cgt-calc/package.nix +++ b/pkgs/by-name/cg/cgt-calc/package.nix @@ -1,31 +1,24 @@ { lib, fetchFromGitHub, - fetchpatch, python3Packages, withTeXLive ? true, texliveSmall, }: python3Packages.buildPythonApplication (finalAttrs: { pname = "cgt-calc"; - version = "1.14.0"; + # Includes updates to use pyrate-limiter v4 that are not released yet + # unfortunately. + version = "1.14.0-unstable-2026-02-23"; pyproject = true; src = fetchFromGitHub { owner = "KapJI"; repo = "capital-gains-calculator"; - rev = "v${finalAttrs.version}"; + rev = "3326514c8e99904eeeda676948c4404da6fe1adc"; hash = "sha256-6iOlDNlpfCrbRCxEJsRYw6zqOehv/buVN+iU6J6CtIk="; }; - patches = [ - # https://github.com/KapJI/capital-gains-calculator/pull/715 - (fetchpatch { - url = "https://github.com/KapJI/capital-gains-calculator/commit/ec7155c1256b876d5906a3885656489e9fdd798c.patch"; - hash = "sha256-pfGHSKuDRF0T1hP7kpRC285limd1voqLXcXCP7mAD3s="; - }) - ]; - pythonRelaxDeps = [ # The built wheel holds an upper bound requirement for the version of these # dependenceis, while pyproject.toml doesn't. Upstream's `uv.lock` even @@ -34,6 +27,12 @@ python3Packages.buildPythonApplication (finalAttrs: { "defusedxml" "yfinance" ]; + pythonRemoveDeps = [ + # Upstream's uv.lock doesn't reference this dependency, and lists + # pyrate-limiter instead. The built wheel from some reason requests it + # never the less. + "requests-ratelimiter" + ]; build-system = with python3Packages; [ poetry-core