1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 python,
7 pytestCheckHook,
8 pythonOlder,
9 six,
10}:
11
12buildPythonPackage rec {
13 pname = "funcparserlib";
14 version = "1.0.1";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "vlasovskikh";
21 repo = pname;
22 rev = version;
23 hash = "sha256-LE9ItCaEzEGeahpM3M3sSnDBXEr6uX5ogEkO5x2Jgzc=";
24 };
25
26 nativeBuildInputs = [ poetry-core ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 six
31 ];
32
33 pythonImportsCheck = [ "funcparserlib" ];
34
35 meta = with lib; {
36 description = "Recursive descent parsing library based on functional combinators";
37 homepage = "https://github.com/vlasovskikh/funcparserlib";
38 license = licenses.mit;
39 platforms = platforms.unix;
40 };
41}