Skip to content

Commit

Permalink
beanprice: init at 20240619 (NixOS#325901)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Jan 4, 2025
2 parents c87e3c7 + 24aabe7 commit 9b779ec
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/by-name/be/beanprice/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
fetchFromGitHub,
python3Packages,
}:

python3Packages.buildPythonApplication rec {
pname = "beanprice";
version = "1.2.1-unstable-2024-06-19";
pyproject = true;

src = fetchFromGitHub {
owner = "beancount";
repo = "beanprice";
rev = "e894c9182f4d16f9a46ccb87bdaeca1a7dede040";
hash = "sha256-l96W77gldE06Za8fj84LADGCqlYeWlHKvWQO+oLy1gI=";
};

build-system = with python3Packages; [ setuptools ];

dependencies = with python3Packages; [
beancount
python-dateutil
regex
requests
];

nativeCheckInputs = with python3Packages; [
click
pytestCheckHook
regex
];

pythonImportsCheck = [ "beancount" ];

meta = {
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";
};
}

0 comments on commit 9b779ec

Please sign in to comment.