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
awsebcli: clean up derivation #35380
Conversation
pname = "docker-py"; | ||
version = "1.7.2"; | ||
name = "${pname}-${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can only drop that if you remove name
from the pythonPackages.docker
expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, it seems to me like the docker dependency and some others were completely removed from awsebcli's setup.py. Please have a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right that docker-py
is no longer required. docker
is now an optional dependency. Even though it's an optional dependency the script is a bit evil, it will try and install docker
using pip
if you run a command that requires it. I'm not sure how to resolve this though, because the docker
in nixpkgs
requires a version of requests
that awsebcli
is not satisified with. I'll remove it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, then we should try to add it nevertheless. Is there maybe a patch to make awsebcli
work with a newer version of requests
?
packageOverrides = self: super: { | ||
cement = super.cement.overridePythonAttrs (oldAttrs: { | ||
src = oldAttrs.src.override { | ||
version = "2.8.2"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inherit version;
@@ -2,70 +2,52 @@ | |||
let | |||
|
|||
localPython = python.override { | |||
packageOverrides = self: super: rec { | |||
cement = super.cement.overridePythonAttrs (oldAttrs: rec { | |||
version = "2.8.2"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't leave that out, otherwise the derivation will have a wrong name.
sha256 = "0zsqrzlybf25xscgi7ja4s48y2abf9wvjkn47wh984qgs1fq2xy5"; | ||
}; | ||
}); | ||
|
||
semantic-version = super.semantic-version.overridePythonAttrs (oldAttrs: rec { | ||
version = "2.5.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here for version
sha256 = "0p5n3d6blgkncxdz00yxqav0cis87fisdkirjm0ljjh7rdfx7aiv"; | ||
}; | ||
}); | ||
|
||
tabulate = super.tabulate.overridePythonAttrs (oldAttrs: rec { | ||
version = "0.7.5"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
7da33e5
to
038fb49
Compare
@dotlambda thanks again for the feedback, please take another look if you can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include (cherry-pick) this commit in your PR: dotlambda@b053d46
Otherwise, you would also have to override the name
for those python modules specifying a name
.
inherit version; | ||
colorama = super.colorama.overridePythonAttrs (oldAttrs: { | ||
src = oldAttrs.src.override { | ||
version = "0.3.7"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inherit version
@@ -81,7 +59,7 @@ in with localPython.pkgs; buildPythonApplication rec { | |||
doCheck = false; | |||
|
|||
propagatedBuildInputs = [ | |||
blessed botocore cement colorama docker dockerpty docopt pathspec pyyaml | |||
blessed botocore cement colorama dockerpty docopt pathspec pyyaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could add a comment
# FIXME: Add optional docker dependency, which requires requests >= 2.14.2.
# Otherwise, awsebcli will try to install it using pip.
Found a mistake in above commit, use this one instead: dotlambda@073ef99 |
038fb49
to
411b786
Compare
@dotlambda I applied those changes on top of your commit and rebased 👍 |
@GrahamcOfBorg build awsebcli |
Success on x86_64-linux (full log) Partial log (click to expand)
|
@dotlambda thanks! |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Motivation for this change
Follow up from comments on #35315: #35315 (review)
cc @dotlambda, thank you for for the helpful suggestions.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)