Files
nixpkgs/pkgs/development/python-modules/fava-investor/default.nix
2026-03-30 09:00:08 +08:00

72 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
stdenv,
beancount,
click,
click-aliases,
fava,
packaging,
pytestCheckHook,
python-dateutil,
setuptools,
setuptools-scm,
tabulate,
yfinance,
}:
buildPythonPackage rec {
pname = "fava-investor";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "redstreet";
repo = "fava_investor";
tag = version;
hash = "sha256-WuXbZcia0n9SoiCSB2SkMUjBHsMOA0gCIf9ZEU9pTPA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
beancount
click
click-aliases
fava
packaging
python-dateutil
tabulate
yfinance
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# First differing element 1:
# '----------------- -------- ------------'
# '------------- -------- ------------'
#
# ['asset_type amount percentage',
# - '----------------- -------- ------------',
# ? ----
#
# + '------------- -------- ------------',
"fava_investor/modules/assetalloc_class/test_asset_allocation.py::TestScriptCheck::test_multicurrency"
"fava_investor/modules/assetalloc_class/test_asset_allocation.py::TestScriptCheck::test_tree_empty_parent"
];
pythonImportsCheck = [ "fava_investor" ];
meta = {
description = "Comprehensive set of reports, analyses, and tools for investments, for Beancount and Fava";
homepage = "https://github.com/redstreet/fava_investor";
changelog = "https://github.com/redstreet/fava_investor/blob/main/CHANGELOG.md";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ambroisie ];
};
}