diff --git a/modules.json b/modules.json index 38f77b12..e5804ecb 100644 --- a/modules.json +++ b/modules.json @@ -715,6 +715,10 @@ "commit": "2250a9afde519540b54c69522bc27f732654f294", "path": "/nix/store/i0q9y4kjp4lz216n6qfkl9vs96arxjq2-replit-module-python-3.10" }, + "python-3.10:v51-20240301-fce6b38": { + "commit": "fce6b3862fb5fae63daf8229e611995f219a3e93", + "path": "/nix/store/cps6dpq7h5aqm0ipylraq7ym0bqn99ga-replit-module-python-3.10" + }, "qbasic:v1-20230525-c48c43c": { "commit": "c48c43c6c698223ed3ce2abc5a2d708735a77d5b", "path": "/nix/store/4n4raazspqy2zgawkkyaqc9xapl1f5sz-replit-module-qbasic" @@ -1083,6 +1087,10 @@ "commit": "2250a9afde519540b54c69522bc27f732654f294", "path": "/nix/store/qwq0j7j2ln63a3h0r033pm5llzw46aq0-replit-module-python-3.11" }, + "python-3.11:v32-20240301-fce6b38": { + "commit": "fce6b3862fb5fae63daf8229e611995f219a3e93", + "path": "/nix/store/m0hrcir1h35mg87s1jaj7hsib1375nqv-replit-module-python-3.11" + }, "python-3.8:v1-20230829-e1c0916": { "commit": "e1c0916e9629e64e596aa4730df2da68363ddeeb", "path": "/nix/store/rsycf8rjpznldnf51h83yl0mx3v3ddij-replit-module-python-3.8" @@ -1207,6 +1215,10 @@ "commit": "2250a9afde519540b54c69522bc27f732654f294", "path": "/nix/store/bk9v6p5an4gmnnqgymk3dw5rfi6m71ag-replit-module-python-3.8" }, + "python-3.8:v32-20240301-fce6b38": { + "commit": "fce6b3862fb5fae63daf8229e611995f219a3e93", + "path": "/nix/store/pi2sqghsk53gjnkpi76faci08abjq2ys-replit-module-python-3.8" + }, "bun-1.0:v1-20230911-f253fb1": { "commit": "f253fb1a97d9a1c950d90081ee1ccb290776cf8b", "path": "/nix/store/qf9aiylryg8lq5q4z7fcj11824k9rf17-replit-module-bun-1.0" @@ -1431,6 +1443,10 @@ "commit": "2250a9afde519540b54c69522bc27f732654f294", "path": "/nix/store/ja2dy1y3jzr71dx86011dvmdyp3vvf4n-replit-module-python-with-prybar-3.10" }, + "python-with-prybar-3.10:v31-20240301-fce6b38": { + "commit": "fce6b3862fb5fae63daf8229e611995f219a3e93", + "path": "/nix/store/hxqwbpnlajmix3mz45fn9z9bjyjmiczv-replit-module-python-with-prybar-3.10" + }, "nodejs-with-prybar-18:v1-20230928-1ea5ac0": { "commit": "1ea5ac0313085b2ac631b493c925d33489d58410", "path": "/nix/store/8v3laig35f30bvgw8mwjcsznk06l7vf3-replit-module-nodejs-with-prybar-18" diff --git a/pkgs/modules/python/default.nix b/pkgs/modules/python/default.nix index 367902c0..4a6f8f75 100644 --- a/pkgs/modules/python/default.nix +++ b/pkgs/modules/python/default.nix @@ -98,7 +98,7 @@ let yapf = pypkgs.yapf; }; - sitecustomize = pkgs.callPackage ./sitecustomize.nix { }; + sitecustomize = pkgs.callPackage ./sitecustomize { }; in { diff --git a/pkgs/modules/python/sitecustomize.nix b/pkgs/modules/python/sitecustomize/default.nix similarity index 80% rename from pkgs/modules/python/sitecustomize.nix rename to pkgs/modules/python/sitecustomize/default.nix index 8ca37841..e510f904 100644 --- a/pkgs/modules/python/sitecustomize.nix +++ b/pkgs/modules/python/sitecustomize/default.nix @@ -1,12 +1,15 @@ -{ pkgs, ... }: # Use this sitecustomize.py (a directory containing it in PYTHONPATH) to # overwrite pip's shebang line treatment so it doesn't use hard-coded paths # to the python executable, so we could update Python without editing Repls # Using this approach also allows this scheme to work with a version of pip # which the user has installed into their .pythonlibs, which can happen if they # upgrade pip. -pkgs.writeTextFile { +{ pkgs, ... }: +pkgs.stdenv.mkDerivation { name = "sitecustomize"; - text = ./sitecustomize.py; - destination = "/sitecustomize.py"; -} + src = ./.; + installPhase = '' + mkdir $out + mv ./sitecustomize.py $out + ''; +} \ No newline at end of file diff --git a/pkgs/modules/python/sitecustomize.py b/pkgs/modules/python/sitecustomize/sitecustomize.py similarity index 100% rename from pkgs/modules/python/sitecustomize.py rename to pkgs/modules/python/sitecustomize/sitecustomize.py