94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
47 lines
964 B
Nix
47 lines
964 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, lark
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "beancount-parser";
|
|
version = "0.2.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LaunchPlatform";
|
|
repo = "beancount-parser";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-VSl+Jde/mDSUpICXjmPKID6qZiKUUaK8ixztP1qaoDM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|