Skip to content

Commit

Permalink
python3Packages.conda: use __structuredAttrs = true
Browse files Browse the repository at this point in the history
  • Loading branch information
ShamrockLee committed Dec 22, 2024
1 parent c1f48d0 commit e7b6887
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2505.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@

- The behavior of the `networking.nat.externalIP` and `networking.nat.externalIPv6` options has been changed. `networking.nat.forwardPorts` now only forwards packets destined for the specified IP addresses.

- `python3Packages.conda` now uses `__structuredAttrs = true`.

- `python3Packages.jaeger-client` was removed because it was deprecated upstream. [OpenTelemetry](https://opentelemetry.io) is the recommended replacement.

- `nodePackages.meshcommander` has been removed, as the package was deprecated by Intel.
Expand Down
15 changes: 12 additions & 3 deletions pkgs/development/python-modules/conda/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
defaultPkgPath ? "~/.conda/pkgs", # default path to store download conda packages
}:
buildPythonPackage rec {
__structuredAttrs = true;
pname = "conda";
version = "24.7.1";
pyproject = true;
Expand Down Expand Up @@ -63,9 +64,17 @@ buildPythonPackage rec {
patches = [ ./0001-conda_exe.patch ];

makeWrapperArgs = [
"--set CONDA_EXE ${placeholder "out"}/bin/conda"
''--set-default CONDA_ENVS_PATH "${defaultEnvPath}"''
''--set-default CONDA_PKGS_DIRS "${defaultPkgPath}"''
"--set"
"CONDA_EXE"
"${placeholder "out"}/bin/conda"

"--set-default"
"CONDA_ENVS_PATH"
defaultEnvPath

"--set-default"
"CONDA_PKGS_DIRS"
defaultPkgPath
];

pythonImportsCheck = [ "conda" ];
Expand Down

0 comments on commit e7b6887

Please sign in to comment.