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