summary refs log tree commit diff
diff options
context:
space:
mode:
authorDrew Risinger <drewrisinger@users.noreply.github.com>2021-04-02 15:15:34 -0400
committerDrew Risinger <drewrisinger@users.noreply.github.com>2021-04-05 14:34:39 -0400
commitb33018e08a09ea858260334d8c1df55bfee31567 (patch)
tree71790dc26466b4962d457862a57e5879d392ca86
parentb5e8919e566d18ec4d6c2a6a2d698cc8f012f009 (diff)
downloadnixpkgs-b33018e08a09ea858260334d8c1df55bfee31567.tar
nixpkgs-b33018e08a09ea858260334d8c1df55bfee31567.tar.gz
nixpkgs-b33018e08a09ea858260334d8c1df55bfee31567.tar.bz2
nixpkgs-b33018e08a09ea858260334d8c1df55bfee31567.tar.lz
nixpkgs-b33018e08a09ea858260334d8c1df55bfee31567.tar.xz
nixpkgs-b33018e08a09ea858260334d8c1df55bfee31567.tar.zst
nixpkgs-b33018e08a09ea858260334d8c1df55bfee31567.zip
python3Packages.lark-parser: 0.8.8 -> 0.11.2
* add myself as maintainer
-rw-r--r--pkgs/development/python-modules/lark-parser/default.nix26
1 files changed, 17 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/lark-parser/default.nix b/pkgs/development/python-modules/lark-parser/default.nix
index a95a8907422..d8996a153e6 100644
--- a/pkgs/development/python-modules/lark-parser/default.nix
+++ b/pkgs/development/python-modules/lark-parser/default.nix
@@ -1,28 +1,36 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
+, regex
+  # Test inputs
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "lark-parser";
-  version = "0.8.8";
+  version = "0.11.2";
 
   src = fetchFromGitHub {
     owner = "lark-parser";
     repo = "lark";
     rev = version;
-    sha256 = "1q2dvkkfx9dvag5v5ps0ki4avh7i003gn9sj30jy1rsv1bg4y2mb";
+    sha256 = "1v1piaxpz4780km2z5i6sr9ygi9wpn09yyh999b3f4y0dcz20pbd";
   };
 
-  # tests of Nearley support require js2py
-  preCheck = ''
-    rm -r tests/test_nearley
-  '';
+  propagatedBuildInputs = [ regex ];
 
-  meta = {
+  checkInputs = [ pytestCheckHook ];
+  disabledTestPaths = [
+    "tests/test_nearley" # requires Js2Py package (not in nixpkgs)
+  ];
+  disabledTests = [
+    "test_override_rule"  # has issue with file access paths
+  ];
+
+  meta = with lib; {
     description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
     homepage = "https://github.com/lark-parser/lark";
-    license = lib.licenses.mit;
-    maintainers = with lib.maintainers; [ fridh ];
+    license = licenses.mit;
+    maintainers = with maintainers; [ fridh drewrisinger ];
   };
 }