summary refs log tree commit diff
path: root/pkgs/development/python-modules/lark-parser
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-12-11 13:57:24 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2017-12-11 13:57:24 +0100
commit8544e86bc2f4c936219649a6ac0b05cb802870e7 (patch)
tree565412cbebdf2e3967ad2efec68126bb6fc309de /pkgs/development/python-modules/lark-parser
parent76090f5dc39843bc1d03d64b97436e7333ff90dd (diff)
downloadnixlib-8544e86bc2f4c936219649a6ac0b05cb802870e7.tar
nixlib-8544e86bc2f4c936219649a6ac0b05cb802870e7.tar.gz
nixlib-8544e86bc2f4c936219649a6ac0b05cb802870e7.tar.bz2
nixlib-8544e86bc2f4c936219649a6ac0b05cb802870e7.tar.lz
nixlib-8544e86bc2f4c936219649a6ac0b05cb802870e7.tar.xz
nixlib-8544e86bc2f4c936219649a6ac0b05cb802870e7.tar.zst
nixlib-8544e86bc2f4c936219649a6ac0b05cb802870e7.zip
python.pkgs.lark-parser: init at 2017-12-10
Diffstat (limited to 'pkgs/development/python-modules/lark-parser')
-rw-r--r--pkgs/development/python-modules/lark-parser/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/lark-parser/default.nix b/pkgs/development/python-modules/lark-parser/default.nix
new file mode 100644
index 000000000000..b81cc132a2d3
--- /dev/null
+++ b/pkgs/development/python-modules/lark-parser/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, python
+}:
+
+buildPythonPackage rec {
+  pname = "lark-parser"; # PyPI name
+  version = "2017-12-10";
+
+  src = fetchFromGitHub {
+    owner = "erezsh";
+    repo = "lark";
+    rev = "852607b978584ecdec68ac115dd8554cdb0a2305";
+    sha256 = "1clzmvbp1b4zamcm6ldak0hkw46n3lhw4b28qq9xdl0n4va6zig7";
+  };
+
+  checkPhase = ''
+    ${python.interpreter} -m unittest
+  '';
+
+  doCheck = false; # Requires js2py
+
+  meta = {
+    description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
+    homepage = https://github.com/erezsh/lark;
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ fridh ];
+  };
+}