Conversation
|
Building |
81023d5 to
47e31ab
Compare
|
Thanks for reviewing this, @Ma27! I forgot to rebuild the I've updated |
|
@GrahamcOfBorg build aws-sam-cli |
|
Built and tested locally, nix-review seems fine 👍 |
|
@dhl thanks! |
|
Thank you @Ma27! |
| let | ||
| py = python.override { | ||
| packageOverrides = self: super: { | ||
| pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec { |
There was a problem hiding this comment.
overriding a Python library inside python-packages.nix is going to cause trouble when composing an env consisting of the original version and the overridden version
There was a problem hiding this comment.
@FRidh understood. I'll get a fix in ASAP.
serverlessrepo has a dependency on pyyaml declared as 'pyyaml~=3.12'.
What's the best way to deal with this? Should I fix up the version in setup.py, or package an older version of pyyaml?
There was a problem hiding this comment.
a) check (yourself/with upstream) whether it actually does work with the version we use, and if so patch it
b) if it does not work, then the module is unfortunately broken. Even so, an application can choose to perform the override as is done here
There was a problem hiding this comment.
Thanks @FRidh. The tests are passing for python 2.7 after patching. Will make another PR after the tests also pass for 3.5, 3.6 and 3.7.
Apologies for the trouble.
There was a problem hiding this comment.
Ouch, I actually knew about this, but totally missed that the change is done to a library, sorry! :/
@dhl do you need assistance to fix that?
|
We can only perform overrides of run-time dependencies in applications, not in libraries. |
Motivation for this change
To bring aws-sam-cli up-to-date and fix
pythonPackages.serverlessrepo, which was made broken by pyyaml being updated to a newer version ni nixpkgs.Things done
sandboxinnix.confon non-NixOS)nix-shell -p nix-review --run "nix-review wip"./result/bin/)nix path-info -Sbefore and after)