mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
openmolcas: 23.10 -> 24.02
This commit is contained in:
parent
43c67a96f7
commit
2a876140a8
@ -41,16 +41,15 @@ let
|
||||
};
|
||||
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openmolcas";
|
||||
version = "23.10";
|
||||
version = "24.02";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "Molcas";
|
||||
repo = "OpenMolcas";
|
||||
# The tag keeps moving, fix a hash instead
|
||||
rev = "c74317e68572d1da82fdce4210b005c2c1b1de53"; # 2023-09-25
|
||||
hash = "sha256-wBrASZ6YFsWsu/TreEZ6Q+VxNQwCwMpyPC8AOqmNxos=";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-4Ek0cnaRfLEbj1Nj31rRp9b2sois4rIFTcpOUq9h2mw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@ -59,9 +58,6 @@ stdenv.mkDerivation {
|
||||
|
||||
# Required for a local QCMaquis build
|
||||
./qcmaquis.patch
|
||||
|
||||
# PyParsing >= 3.11 compatibility, can be removed on next release
|
||||
./pyparsing.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -1,37 +0,0 @@
|
||||
diff --git a/Tools/pymolcas/emil_grammar.py b/Tools/pymolcas/emil_grammar.py
|
||||
index acbbae8..509c56f 100644
|
||||
--- a/Tools/pymolcas/emil_grammar.py
|
||||
+++ b/Tools/pymolcas/emil_grammar.py
|
||||
@@ -15,6 +15,14 @@
|
||||
|
||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
||||
|
||||
+try:
|
||||
+ u = unicode
|
||||
+ del u
|
||||
+ py2 = True
|
||||
+except NameError:
|
||||
+ pass
|
||||
+
|
||||
+
|
||||
from re import sub
|
||||
from pyparsing import *
|
||||
|
||||
@@ -24,6 +32,8 @@ def chomp(s):
|
||||
|
||||
def chompAction(s, l, t):
|
||||
try:
|
||||
+ if (py2):
|
||||
+ pass
|
||||
return list(map(lambda s: chomp(unicode(s)), t))
|
||||
except NameError:
|
||||
return list(map(chomp, t))
|
||||
@@ -33,6 +43,8 @@ def removeEMILEnd(s):
|
||||
|
||||
def removeEMILEndAction(s, l, t):
|
||||
try:
|
||||
+ if (py2):
|
||||
+ pass
|
||||
return list(map(lambda s: removeEMILEnd(unicode(s)), t))
|
||||
except NameError:
|
||||
return list(map(removeEMILEnd, t))
|
Loading…
Reference in New Issue
Block a user