Commit fc235bb0 authored by Alexandre Macabies's avatar Alexandre Macabies
Browse files

python/hooks: use python.pythonVersion to support PyPy



f292ef49 introduced a check for the Python version but uses `.version`,
which isn't friendly to other Pythons like PyPy which use versions
strings like 7.3, failing the >=3.10 check.

Using `.pythonVersion` fixes this check.

Co-authored-by: default avatarPierre Bourdon <delroth@gmail.com>
parent 55103bf2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ in {
    makePythonHook {
      name = "python-catch-conflicts-hook";
      substitutions = let
        useLegacyHook = lib.versionOlder python.version "3.10";
        useLegacyHook = lib.versionOlder python.pythonVersion "3.10";
      in {
        inherit pythonInterpreter pythonSitePackages;
        catchConflicts = if useLegacyHook then