Commit b018ce24 authored by Sigmanificient's avatar Sigmanificient
Browse files

python312Packages.samarium: 0.5.3 -> 0.6.2

parent 0a1650c3
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
--- a/src/samarium/tokenizer.py	2024-06-07 13:07:38.731314161 +0200
+++ b/src/samarium/tokenizer.py	2024-06-07 13:08:11.674488226 +0200
@@ -26,12 +26,12 @@
     Token,
     ignore_whitespace=True,
     rules=[
-        Rule(r"==<.*>==", converter=False, flags=re.M | re.S),
-        Rule(r"==[^\n]*", converter=False, flags=re.M | re.S),
+        Rule(r"==<.*>==", flags=re.M | re.S, ignore=True),
+        Rule(r"==[^\n]*", flags=re.M | re.S, ignore=True),
         Rule(
             common.DOUBLE_QUOTED_STRING.pattern,
             lambda x: x.replace("\n", r"\n"),
-            re.S,
+            flags=re.S,
         ),
         Rule(rf"{SM_BIT}+`?{SM_BIT}*|`{SM_BIT}*", to_number),
         Rule(r"\w+"),
+2 −3
Original line number Diff line number Diff line
@@ -10,20 +10,19 @@

buildPythonPackage rec {
  pname = "samarium";
  version = "0.5.3";
  version = "0.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "samarium-lang";
    repo = "samarium";
    rev = "refs/tags/${version}";
    hash = "sha256-4WVkTLE6OboNJE/f+6zS3xT1jEHUwV4HSLjl/PBP0FU=";
    hash = "sha256-sOkJ67B8LaIA2cwCHaFnc16lMG8uaegBJCzF6Li77vk=";
  };

  build-system = [ poetry-core pythonRelaxDepsHook ];
  dependencies = [ crossandra dahlia ];

  patches = [ ./crossandra-2-fix.patch ];
  pythonRelaxDeps = [ "crossandra" ];

  meta = with lib; {