pymol: modernize

+12 -9
+12 -9
pkgs/by-name/py/pymol/package.nix
··· 58 58 59 59 # A script is already created by the `[project.scripts]` directive 60 60 # in `pyproject.toml`. 61 - patches = [ 61 + patches = [ 62 62 ./script-already-exists.patch 63 63 64 64 # Fix python3.13 and numpy 2 compatibility 65 65 (fetchpatch { 66 - url="https://github.com/schrodinger/pymol-open-source/commit/fef4a026425d195185e84d46ab88b2bbd6d96cf8.patch"; 66 + url = "https://github.com/schrodinger/pymol-open-source/commit/fef4a026425d195185e84d46ab88b2bbd6d96cf8.patch"; 67 67 hash = "sha256-F/5UcYwgHgcMQ+zeigedc1rr3WkN9rhxAxH+gQfWKIY="; 68 68 }) 69 69 (fetchpatch { 70 - url="https://github.com/schrodinger/pymol-open-source/commit/97cc1797695ee0850621762491e93dc611b04165.patch"; 70 + url = "https://github.com/schrodinger/pymol-open-source/commit/97cc1797695ee0850621762491e93dc611b04165.patch"; 71 71 hash = "sha256-H2PsRFn7brYTtLff/iMvJbZ+RZr7GYElMSINa4RDYdA="; 72 72 }) 73 73 # Fixes failing test testLoadPWG 74 74 (fetchpatch { 75 - url="https://github.com/schrodinger/pymol-open-source/commit/17c6cbd96d52e9692fd298daec6c9bda273a8aad.patch"; 75 + url = "https://github.com/schrodinger/pymol-open-source/commit/17c6cbd96d52e9692fd298daec6c9bda273a8aad.patch"; 76 76 hash = "sha256-dcYRzUhiaGlR3CjQ0BktA5L+8lFyVdw0+hIz3Li7gDQ="; 77 77 }) 78 78 ]; ··· 95 95 ]; 96 96 97 97 buildInputs = [ 98 - python3Packages.numpy 99 - python3Packages.pyqt5 100 98 qt5.qtbase 101 99 glew 102 100 glm ··· 108 106 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ 109 107 mmtf-cpp 110 108 msgpack 109 + ]; 110 + 111 + dependencies = with python3Packages; [ 112 + numpy 113 + pyqt5 111 114 ]; 112 115 113 116 env.NIX_CFLAGS_COMPILE = "-I ${libxml2.dev}/include/libxml2"; ··· 173 176 wrapQtApp "$out/bin/pymol" 174 177 ''; 175 178 176 - meta = with lib; { 179 + meta = { 177 180 inherit description; 178 181 mainProgram = "pymol"; 179 182 homepage = "https://www.pymol.org/"; 180 - license = licenses.mit; 181 - maintainers = with maintainers; [ 183 + license = lib.licenses.mit; 184 + maintainers = with lib.maintainers; [ 182 185 natsukium 183 186 samlich 184 187 ];