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
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "beanprice";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "beancount";
|
|
repo = "beanprice";
|
|
tag = "v${version}";
|
|
hash = "sha256-Lhr8CRysZbI6dpPwRSN6DgvnKrxsIzH5YyZXRLU1l3Q=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
dependencies = with python3Packages; [
|
|
beancount
|
|
curl-cffi
|
|
diskcache
|
|
python-dateutil
|
|
regex
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
click
|
|
pytestCheckHook
|
|
regex
|
|
];
|
|
|
|
# Disable tests that require internet access
|
|
disabledTestPaths = [
|
|
"beanprice/price_test.py"
|
|
"beanprice/sources/yahoo_test.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "beanprice" ];
|
|
|
|
meta = {
|
|
broken = lib.versionOlder python3Packages.beancount.version "3";
|
|
homepage = "https://github.com/beancount/beanprice";
|
|
description = "Price quotes fetcher for Beancount";
|
|
longDescription = ''
|
|
A script to fetch market data prices from various sources on the internet
|
|
and render them for plain text accounting price syntax (and Beancount).
|
|
'';
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ alapshin ];
|
|
mainProgram = "bean-price";
|
|
};
|
|
}
|