Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
988 B
Nix
49 lines
988 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
withTeXLive ? true,
|
|
texliveSmall,
|
|
}:
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cgt-calc";
|
|
version = "1.13.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KapJI";
|
|
repo = "capital-gains-calculator";
|
|
rev = "v${version}";
|
|
hash = "sha256-y/Y05wG89nccXyxfjqazyPJhd8dOkfwRJre+Rzx97Hw=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
poetry-core
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
defusedxml
|
|
jinja2
|
|
pandas
|
|
requests
|
|
types-requests
|
|
yfinance
|
|
];
|
|
|
|
makeWrapperArgs = lib.optionals withTeXLive [
|
|
"--prefix"
|
|
"PATH"
|
|
":"
|
|
"${lib.getBin texliveSmall}/bin"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "UK capital gains tax calculator";
|
|
homepage = "https://github.com/KapJI/capital-gains-calculator";
|
|
license = licenses.mit;
|
|
mainProgram = "cgt-calc";
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|