Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.1.21";
13
14 disabled = pythonOlder "3.9";
15 format = "pyproject";
16
17 src = fetchFromGitHub {
18 owner = "LaunchPlatform";
19 repo = "beancount-parser";
20 rev = version;
21 sha256 = "sha256-0uhH75OEjC9iA0XD0VX7CGoRIP/hpM4y+53JnyXgZpA=";
22 };
23
24 buildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 lark
30 ];
31
32 checkInputs = [
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 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ ambroisie ];
45 };
46}