Commit Graph

600178 Commits

Author SHA1 Message Date
Colin Putney
234bb31f61
Fix venv creation in Python environments
The way we build python environments is subtly broken. A python
environment should be semantically identical to a vanilla Python
installation in, say, /usr/local. The current implementation, however,
differs in two important ways. The first is that it's impossible to use
python packages from the environment in python virtual environments. The
second is that the nix-generated environment appears to be a venv, but
it's not.

This commit changes the way python environments are built:

  * When generating wrappers for python executables, we inherit argv[0]
    from the wrapper. This causes python to initialize its configuration
    in the environment with all the correct paths.
  * We remove the sitecustomize.py file from the base python package.
    This file was used tweak the python configuration after it was
    incorrectly initialized. That's no longer necessary.

The end result is that python environments no longer appear to be venvs,
and behave more like a vanilla python installation. In addition it's
possible to create a venv using an environment and use packages from
both the environment and the venv.
2024-03-21 19:26:57 -06:00
github-actions[bot]
b727e4cb21
Merge staging-next into staging 2024-03-19 00:02:39 +00:00
github-actions[bot]
7c0bd382c7
Merge master into staging-next 2024-03-19 00:02:09 +00:00
Mario Rodas
e0d7b921c6
Merge pull request #295893 from petertrotman/cmake-tools.nvim
Add cmake-tools.nvim to vimPlugins
2024-03-18 19:00:24 -05:00
Mario Rodas
b9c5f2859f
Merge pull request #296961 from r-ryantm/auto-update/cloud-nuke
cloud-nuke: 0.33.0 -> 0.34.0
2024-03-18 18:58:07 -05:00
Mario Rodas
8e9880c6bc
Merge pull request #297025 from Stunkymonkey/python-macfsevents-normalize
python312Packages.macfsevents: normalize pname
2024-03-18 18:50:55 -05:00
a-n-n-a-l-e-e
5c3e17b2f8
Merge pull request #268547 from benjaminedwardwebb/dmenu-rs-5.5.3
dmenu-rs: 5.5.2 -> 5.5.3
2024-03-18 16:41:21 -07:00
kirillrdy
f7274b39c3
Merge pull request #291306 from r-ryantm/auto-update/crossplane-cli
crossplane-cli: 1.15.0 -> 1.15.1
2024-03-19 10:40:33 +11:00
Yt
e6bf74e26a
Merge pull request #296379 from sikmir/surrealdb
surrealdb: 1.2.1 → 1.3.1
2024-03-18 23:23:23 +00:00
adisbladis
142d2b81d0
Merge pull request #296839 from adisbladis/orca-slicer-no-inherit-patches
orca-slicer: Fix build by not inheriting patches from bambu-studio
2024-03-19 12:15:03 +13:00
Daniel Sidhion
0346c9058a
Merge pull request #295674 from lolbinarycat/clean-pkg-quickstart
doc: add link to the language frameworks from the pkgs quickstart
2024-03-18 16:12:00 -07:00
Lily Foster
e3c0bb4255
Merge pull request #294542 from Janik-Haag/garage
nixos/garage: add env-var wrapper for admin cli
2024-03-18 16:10:15 -07:00
Daniel Sidhion
83f77a1b38
Merge pull request #294019 from Lurkki14/doc-makedesktopitem
doc: document makeDesktopItem
2024-03-18 16:08:29 -07:00
Lily Foster
4e1ac556ab
Merge pull request #296523 from lf-/jade/nix-doc-no-plugin
nix-doc: allow building without plugin
2024-03-18 16:07:52 -07:00
Alexis Hildebrandt
c2f60aeadc nawk: 20230911 -> 20240311 2024-03-19 00:03:53 +01:00
R. RyanTM
8b8cfec92e
python311Packages.vector: 1.3.0 -> 1.3.1 (#296881) 2024-03-18 18:57:44 -04:00
Felix Bühler
85f6b7ab50
python312Packages.energyflow: normalize pname (#297022) 2024-03-18 18:40:02 -04:00
Felix Bühler
fbb5e309d0
Merge pull request #297021 from Stunkymonkey/python-coapthon3-normalize
python312Packages.coapthon3: normalize pname
2024-03-18 23:35:26 +01:00
Aaron Jheng
55bf02190e cockroachdb: point to cockroachdb-bin 2024-03-18 17:19:16 -05:00
Janik H.
9ec0e31f79
nixos/garage: add env-var wrapper for admin cli 2024-03-18 22:53:21 +01:00
Martin Weinelt
ac663ebd21
Merge pull request #296975 from mweinelt/firefox-124.0
firefox: 123.0.1 -> 124.0; firefox-esr: 115.8.0esr -> 115.9.0esr
2024-03-18 22:46:23 +01:00
Will Fancher
57f69255d7
Merge pull request #293591 from lf-/jade/fix-luksroot-assert
nixos.luksroot: fix assertion message to name correct option
2024-03-18 17:46:11 -04:00
Thiago Kenji Okada
2b22c6dbd4
Merge pull request #296986 from r-ryantm/auto-update/libretro.ppsspp
libretro.ppsspp: unstable-2024-03-13 -> unstable-2024-03-17
2024-03-18 21:44:29 +00:00
Thiago Kenji Okada
8472e84d10
Merge pull request #296989 from r-ryantm/auto-update/libretro.fbneo
libretro.fbneo: unstable-2024-03-14 -> unstable-2024-03-17
2024-03-18 21:44:14 +00:00
Pascal Wittmann
3069b324c9
Merge pull request #296814 from r-ryantm/auto-update/banner
banner: 1.3.5 -> 1.3.6
2024-03-18 22:44:01 +01:00
Thiago Kenji Okada
ecae4f10d5
Merge pull request #296991 from r-ryantm/auto-update/libretro.flycast
libretro.flycast: unstable-2024-03-14 -> unstable-2024-03-17
2024-03-18 21:43:47 +00:00
maralorn
b6668ded0e
Merge pull request #296977 from slotThe/maintainer
Add slotThe as a maintainer
2024-03-18 22:43:38 +01:00
Thiago Kenji Okada
bd33f01154
Merge pull request #296993 from r-ryantm/auto-update/libretro.vecx
libretro.vecx: unstable-2024-02-10 -> unstable-2024-03-17
2024-03-18 21:43:31 +00:00
Thiago Kenji Okada
2d7b5755d5
Merge pull request #296982 from r-ryantm/auto-update/libretro.play
libretro.play: unstable-2024-03-11 -> unstable-2024-03-15
2024-03-18 21:42:49 +00:00
Jade Lovelace
a72afcbc48 nixos.luksroot: fix assertion message to name correct option 2024-03-18 14:41:47 -07:00
Felix Buehler
5ce6ec0ae5 python312Packages.macfsevents: normalize pname 2024-03-18 22:35:19 +01:00
Pol Dellaiera
cf0327ca4d
Merge pull request #293465 from lomenzel/master
polonium: 0.6.0 -> 1.0b1
2024-03-18 22:34:53 +01:00
Fabian Affolter
624bcc5318
Merge pull request #296929 from fabaff/azure-mgmt-datafactory-bump
python312Packages.azure-mgmt-datafactory: 6.0.0 -> 6.1.0
2024-03-18 22:34:18 +01:00
Fabian Affolter
6cf22de567
Merge pull request #296932 from fabaff/azure-mgmt-batch-bump
python312Packages.azure-mgmt-batch: 17.2.0 -> 17.3.0
2024-03-18 22:34:05 +01:00
Fabian Affolter
8dc6323e07
Merge pull request #296995 from fabaff/oracledb-bump
python311Packages.oracledb: 2.0.1 -> 2.1.0
2024-03-18 22:33:53 +01:00
Fabian Affolter
48e8eee712
Merge pull request #296955 from fabaff/pacu
pacu: init at 1.5.2
2024-03-18 22:33:10 +01:00
Fabian Affolter
81a11c9455
Merge pull request #296915 from fabaff/xeol
xeol: init at 0.9.13
2024-03-18 22:32:58 +01:00
Fabian Affolter
8f96c25c0e
Merge pull request #296882 from fabaff/donpapi
donpapi: init at 1.2.0
2024-03-18 22:32:45 +01:00
Fabian Affolter
212b26acdf
Merge pull request #296873 from fabaff/certi
certi: init at 0.1.0-unstable-2023-01-27
2024-03-18 22:32:34 +01:00
Fabian Affolter
5af23690c5
Merge pull request #296863 from fabaff/sslstrip
sslstrip: init at 2.0
2024-03-18 22:32:25 +01:00
Fabian Affolter
e7d91d4baa
Merge pull request #296859 from fabaff/extract-msg
python311Packages.extract-msg: init at 0.48.2
2024-03-18 22:32:14 +01:00
Felix Buehler
3cfa7b5c58 python312Packages.coapthon3: normalize pname 2024-03-18 22:29:55 +01:00
Felix Bühler
ca00bc5e94
Merge pull request #296763 from Stunkymonkey/python-pyscreeze-normalize
python312Packages.pyscreeze: normalize pname
2024-03-18 22:18:48 +01:00
Domen Kožar
9f904a1431
Merge pull request #296878 from YorikSar/dark-mode-notify-clang-fix
dark-mode-notify: sync clang with swift itself
2024-03-19 04:17:43 +07:00
Vincenzo Mantova
f2ac62404a
texlive.bin.core-big: LuaTeX 1.16.0 -> 1.17.0 (#296742)
TeX Live released an exceptional binary update to fix CVEs 2023-32688
and 2023-32700 affecting LuaTeX. This change implements the same LuaTeX
upgrade to version 1.17.0.
2024-03-18 17:16:56 -04:00
Fabian Affolter
0e2e771744
Merge pull request #294106 from Net-Mist/clickhouse-driver
python312Packages.clickhouse-driver: 0.2.5 -> 0.2.7, add support for python 3.12
2024-03-18 22:14:43 +01:00
Matthieu Coudron
5fc8e8d7c4 luaPackages.argparse: enable tests 2024-03-18 22:14:09 +01:00
Fabian Affolter
0c609df542
Merge pull request #294018 from Net-Mist/clickhouse-cityhash
python312Packages.clickhouse-cityhash: fix build for python 3.12
2024-03-18 22:12:57 +01:00
Fabian Affolter
b081342f1c
Merge pull request #296854 from r-ryantm/auto-update/python312Packages.asysocks
python312Packages.asysocks: 0.2.11 -> 0.2.12
2024-03-18 22:05:24 +01:00
Fabian Affolter
bfe176f522
Merge pull request #296904 from r-ryantm/auto-update/python311Packages.axis
python311Packages.axis: 55 -> 56
2024-03-18 22:04:53 +01:00