Merge pull request #330957 from Sigmanificient/samarium-0-6-2

python312Packages.samarium: 0.5.3 -> 0.6.2
This commit is contained in:
2024-08-06 06:43:22 +02:00
committed by GitHub
2 changed files with 2 additions and 21 deletions
@@ -1,18 +0,0 @@
--- 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+"),
@@ -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; {