fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
949 B
Nix
40 lines
949 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
lark,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "beancount-parser";
|
|
version = "1.2.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LaunchPlatform";
|
|
repo = "beancount-parser";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8YcrsLdSRTixKXU/IM821kNcBo0jB/8DXA1/KiedsBY=";
|
|
};
|
|
|
|
buildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [ lark ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "beancount_parser" ];
|
|
|
|
meta = with lib; {
|
|
description = "Standalone Lark based Beancount syntax parser";
|
|
homepage = "https://github.com/LaunchPlatform/beancount-parser/";
|
|
changelog = "https://github.com/LaunchPlatform/beancount-parser/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|