Unverified Commit 9b779ec7 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

beanprice: init at 20240619 (#325901)

parents c87e3c78 24aabe7a
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
{
  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";
  };
}