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
pythonPackages.i3ipc: init at 1.4.0 #34835
Conversation
Please rebase. |
387e3fc
to
fd175b2
Compare
@GrahamcOfBorg build python2.pkgs.i3ipc python3.pkgs.i3ipc |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
No tests are found. Either the test runner cannot find tests and needs to be patched, or there simply are no tests in which case the tests need to be disabled. Do include a comment explaining why the tests are disabled. |
Please set |
@FRidh @dotlambda |
|
||
propagatedBuildInputs = [ enum-compat ]; | ||
|
||
checkPhase = ''python run-tests.py''; |
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.
${python.interpreter}
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.
fixed
@GrahamcOfBorg build python2.pkgs.i3ipc python3.pkgs.i3ipc |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
pname = "i3ipc"; | ||
version = "1.4.0"; | ||
|
||
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.
fetchFromGitHub
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.
Is it really better? With fetchurl
one can change only version
and sha256
when with fetchFromGitHub
the rev
also should be specified. Probably, there is a way to download by tags and not revision?
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.
yes, rev = tag
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.
Actually you'd have to change url
and sha256
with fetchurl. rev
is definitely easier to change than url
.
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.
Ok, got it and fixed.
sha256 = "06x1zc9qizmcg4lxlh2w5amcq7igqlrs1kkvvi1czb5wy689ygsi"; | ||
}; | ||
|
||
nativeBuildInputs = [ xorgserver pytest i3 ]; |
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.
This is probably better suited for checkInputs
.
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.
fixed
@GrahamcOfBorg build python2.pkgs.i3ipc python3.pkgs.i3ipc |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
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.
Thanks a lot!
Thanks very much. |
This is indeed a process that is required for all packages. Aside from https://github.com/NixOS/nixpkgs/blob/master/maintainers/scripts/update-python-libraries there is no automation for Python in Nixpkgs. There have been attempts, but because of various reasons there is no good solution for in Nixpkgs. For other projects |
closes #34828
Motivation for this change
Request from @Cypher1.
Things done
Added package
pythonPackages.i3ipc
.build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)