-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
[RDY] Vdirsyncer update #39195
[RDY] Vdirsyncer update #39195
Conversation
Success on x86_64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
pname = "milksnake"; | ||
version = "0.1.1"; | ||
|
||
src = fetchurl { |
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 use fetchPypi
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.
fetchPypi fails,maybe because it's a .zip and not a .tar.gz ? https://pypi.org/project/milksnake/#files
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.
found a fix
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 pass extension = "zip"
to fetchPypi
.
|
||
meta = with lib; { | ||
description = "A python library that extends setuptools for binary extensions."; | ||
homepage = https://pypi.python.org/pypi/milksnake/; |
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.
]; | ||
|
||
meta = with lib; { | ||
description = "A python library that extends setuptools for binary extensions."; |
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.
no period at the end
Success on x86_64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
postInstall = '' | ||
mkdir $out/include $out/lib | ||
cp $out/bin/libvdirsyncer_rustext* $out/lib | ||
rm -r $out/bin |
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.
rmdir
?
}; | ||
in pythonPackages.buildPythonApplication rec { | ||
inherit version name src; |
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 specify pname
instead of name
.
name = "vdirsyncer-${version}"; | ||
|
||
src = fetchurl { |
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.
fetchPypi
@GrahamcOfBorg build python2.pkgs.milksnake python3.pkgs.milksnake |
Success on x86_64-linux (full log) Attempted: python2.pkgs.milksnake, python3.pkgs.milksnake Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.milksnake, python3.pkgs.milksnake Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
Please set |
Success on x86_64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
I set doCheck to false and used fetchPypi to retrieve vdirsyncer. Binary seems to run fine. |
}; | ||
native = rustPlatform.buildRustPackage { | ||
name = pname + "-native"; |
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.
+ "-" + version
native = rustPlatform.buildRustPackage { | ||
name = pname + "-native"; | ||
inherit src; | ||
sourceRoot = pname + "-" + version + "/rust"; |
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.
I'm not sure but I think there's something like src.name
|
||
propagatedBuildInputs = with pythonPackages; [ | ||
click click-log click-threading | ||
requests_toolbelt | ||
requests | ||
requests_oauthlib # required for google oauth sync | ||
atomicwrites | ||
milksnake | ||
]; | ||
|
||
buildInputs = with pythonPackages; [hypothesis pytest pytest-localserver pytest-subtesthack setuptools_scm ] ++ [ glibcLocales ]; |
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.
Everything but setuptools_scm
belongs into checkInputs
.
Success on aarch64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
Sorry for the many comments, this should be the last batch. Did you try using |
why rmdir ? no pb for the comments, on the contrary it's my fault, I kinda know the python guidelines but didn't check the initial package. Also I might be a bit hasty at merging it since I reported the pb last year. |
Because if every file in |
Success on x86_64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: vdirsyncer Partial log (click to expand)
|
rmdir doesn't work because there seems to be a few subfolders (not a rust expert but rm -r works well enough). src.name adds the extension too so it's not usable (without parseDrvName but I preferred to create a let name = ...) . I hope this is ok |
Motivation for this change
The new rust dependency kinda complicates things see #33050
@matthiasbeyer and @pbogdan made the patch, I just created the PR.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)