mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 20:30:12 +00:00
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
beancount,
|
|
click,
|
|
click-aliases,
|
|
fava,
|
|
packaging,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
setuptools,
|
|
setuptools-scm,
|
|
tabulate,
|
|
yfinance,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "fava-investor";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "redstreet";
|
|
repo = "fava_investor";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-WuXbZcia0n9SoiCSB2SkMUjBHsMOA0gCIf9ZEU9pTPA=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "yfinance" ];
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
beancount
|
|
click
|
|
click-aliases
|
|
fava
|
|
packaging
|
|
python-dateutil
|
|
tabulate
|
|
yfinance
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# AssertionError: Lists differ: ['Warning: skipping...
|
|
"test_multicurrency"
|
|
"test_tree_empty_parent"
|
|
"test_basic_specified"
|
|
"test_basic_unspecified"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
})
|