about summary refs log tree commit diff
path: root/pkgs/applications/science/chemistry
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-10-06 02:19:39 +0300
committerArtturin <Artturin@artturin.com>2023-10-06 03:45:57 +0300
commit58deb9e37aba1da72ca2bbfa6b4a69a62e6965d0 (patch)
tree5be0e1b58c79390569e6372328704d9a932cc687 /pkgs/applications/science/chemistry
parent1b5242abb1b0296e7a4a89521e051f7a737189ab (diff)
apbs: fix py311 build
https://github.com/Electrostatics/apbs/blob/c2e5af22c9044b2bb8f9c1114710add58ec5b007/tools/manip/inputgen.py#L314
Diffstat (limited to 'pkgs/applications/science/chemistry')
-rw-r--r--pkgs/applications/science/chemistry/apbs/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/science/chemistry/apbs/default.nix b/pkgs/applications/science/chemistry/apbs/default.nix
index 2a892dd562530..f4a2bab4243d6 100644
--- a/pkgs/applications/science/chemistry/apbs/default.nix
+++ b/pkgs/applications/science/chemistry/apbs/default.nix
@@ -65,6 +65,10 @@ stdenv.mkDerivation (finalAttrs: {
     substituteInPlace CMakeLists.txt \
       --replace "include(ImportFETK)" "" \
       --replace 'import_fetk(''${FETK_VERSION})' ""
+
+    # U was removed in python 3.11 because it had no effect
+    substituteInPlace tools/manip/inputgen.py \
+      --replace '"rU"' '"r"'
   '';
 
   nativeBuildInputs = [