1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pythonOlder 5, lark 6, poetry-core 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "beancount-parser"; 12 version = "0.2.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "LaunchPlatform"; 19 repo = "beancount-parser"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-VSl+Jde/mDSUpICXjmPKID6qZiKUUaK8ixztP1qaoDM="; 22 }; 23 24 buildInputs = [ 25 poetry-core 26 ]; 27 28 propagatedBuildInputs = [ 29 lark 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ 37 "beancount_parser" 38 ]; 39 40 meta = with lib; { 41 description = "Standalone Lark based Beancount syntax parser"; 42 homepage = "https://github.com/LaunchPlatform/beancount-parser/"; 43 changelog = "https://github.com/LaunchPlatform/beancount-parser/releases/tag/${version}"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ ambroisie ]; 46 }; 47}