Skip to content

Commit

Permalink
Merge pull request #1860 from cpcloud/bump-flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Oct 30, 2024
2 parents 2b84afa + 47929d6 commit 43a898b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 10 additions & 15 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2144,8 +2144,15 @@ lib.composeManyExtensions [
propagatedBuildInputs = old.propagatedBuildInputs or [ ] ++ [ final.pyutilib ];
});

paramiko = prev.paramiko.overridePythonAttrs (_: {
paramiko = prev.paramiko.overridePythonAttrs (old: {
doCheck = false; # requires networking

optional-dependencies = old.optional-dependencies or {
ed25519 = [
final.pynacl
final.bcrypt
];
};
});

parsel = prev.parsel.overridePythonAttrs (
Expand Down Expand Up @@ -2790,11 +2797,7 @@ lib.composeManyExtensions [

pyqt6 =
let
# The build from source fails unless the pyqt6 version agrees
# with the version of qt6 from nixpkgs. Thus, we prefer using
# the wheel here.
pyqt6-wheel = prev.pyqt6.override { preferWheel = true; };
pyqt6 = pyqt6-wheel.overridePythonAttrs (old:
pyqt6 = prev.pyqt6.overridePythonAttrs (old:
let
confirm-license = pkgs.writeText "confirm-license.patch" ''
diff --git a/project.py b/project.py
Expand Down Expand Up @@ -3147,7 +3150,7 @@ lib.composeManyExtensions [
pyzmq = prev.pyzmq.overridePythonAttrs (
old: {
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ pkg-config ];
propagatedBuildInputs = old.propagatedBuildInputs or [ ] ++ [ pkgs.zeromq ];
propagatedBuildInputs = old.propagatedBuildInputs or [ ] ++ [ pkgs.zeromq pkgs.libsodium ];
# setting dontUseCmakeConfigure is necessary because:
#
# 1. pyzmq uses scikit-build-core as of pyzmq version 26.0.0
Expand Down Expand Up @@ -3891,14 +3894,6 @@ lib.composeManyExtensions [
}
);

# The tokenizers build requires a complex rust setup (cf. nixpkgs override)
#
# Instead of providing a full source build, we use a wheel to keep
# the complexity manageable for now.
tokenizers = prev.tokenizers.override {
preferWheel = true;
};

torch = prev.torch.overridePythonAttrs (old: {
# torch has an auto-magical way to locate the cuda libraries from site-packages.
autoPatchelfIgnoreMissingDeps = true;
Expand Down

0 comments on commit 43a898b

Please sign in to comment.