-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: package set updates before branch-off #55757
Conversation
f384d6d
to
2ea0944
Compare
@dotlambda flake8 update is included here |
2ea0944
to
c18a350
Compare
@FRidh The flake8 bump required bumping pyflakes, pycodestyle, entrypoints and configparser as well. I added some changed other than just bumping these packages so I replaced your commits by mine. |
I'm getting
Any idea what's happening? |
I believe that's caused by pykerberos having krb5 listed as a buildInput, when it should be a nativeBuildInput. I guess something was changed about buildInput handling in Python-land in this PR, since that worked before. Fixed here: #56268 |
Is there any kind of policy on how to handle the fallout of breaking changes? I just spent quite some time bisecting the rpy2 failure to the strictDeps commit. I realize that it may not be realistic to expect the committer to fix all downstream issues, but I think doing nothing and hoping for maintainers / end-users to figure out the root cause of failures isn't optimal. Maybe we could at least notify maintainers / post about changes with big breaking potential on nixos-weekly / post on discourse. |
More fallout from enabling strictDeps in NixOS#55757. `buildInputs` are not accessible from the check phase.
More fallout from enabling strictDeps in NixOS#55757. `buildInputs` are not accessible from the check phase.
Uh, hmm, actually that pykerberos fix seems really weird. #56268 pykerberos links against krb5, so shouldn't krb5 be in buildInputs? But when krb5 is in buildInputs, the built binary doesn't properly link against krb5. But it does work if krb5 is in nativeBuildInputs. Huh? |
Maybe the following would make more sense. diff --git a/pkgs/development/python-modules/pykerberos/default.nix b/pkgs/development/python-modules/pykerberos/default.nix
index 994ba059f9e..ca1fda884d5 100644
--- a/pkgs/development/python-modules/pykerberos/default.nix
+++ b/pkgs/development/python-modules/pykerberos/default.nix
@@ -9,7 +9,9 @@ buildPythonPackage rec {
sha256 = "0v47p840myqgc7hr4lir72xshcfpa0w8j9n077h3njpqyn6wlbag";
};
- nativeBuildInputs = [ krb5 ];
+ nativeBuildInputs = [ krb5 ]; # for krb5-config
+
+ buildInputs = [ krb5 ];
# there are no tests
doCheck = false; I have no idea though why it works without EDIT: Removed a |
@dotlambda that's correct, it needs to be in both. |
I know, but |
When not cross-compiling, there is no difference between |
I pushed the fix in 82b3892. |
For the relevant discussion see NixOS#55757 (comment)
The |
@FRidh? If you don't want to rebase #52550, you can always just pin the older version. |
See NixOS#54182 and NixOS#55757. (cherry picked from commit 9e37547)
See NixOS#54182 and NixOS#55757. (cherry picked from commit c6e4e1d)
Motivation for this change
Update all packages before branching off.
https://hydra.nixos.org/jobset/nixpkgs/python-unstable
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)