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
pythonPackage.nipype: fix build #37952
Conversation
@@ -36,6 +36,10 @@ buildPythonPackage rec { | |||
sha256 = "47f62fda3d6b9a37aa407a6b78c80e91240aa71e61191ed00da68b02839fe258"; | |||
}; | |||
|
|||
postPatch = '' | |||
substituteInPlace "nipype/info.py" --replace "PROV_VERSION = '1.5.0'" "PROV_VERSION = '1.5.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.
Can you remove this pinning instead? https://github.com/nipy/nipype/blob/master/nipype/info.py#L142
This only ask for trouble in future.
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.
do we really want to drop dependency constraints in upstream repos? I guess that this makes it easier to spot possible issues related to a hypotehtical bump of pythonPackages.prov
.
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.
At least something like < 1.6.0
or < 2
. Also see #34775 (comment)
@Mic92 ACK, a loosened version constraint might be better, I patched the library accordingly :) |
@GrahamcOfBorg build pythonPackage.nipype |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: pythonPackage.nipype Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: pythonPackage.nipype Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: pythonPackage.nipype Partial log (click to expand)
|
@@ -36,6 +36,8 @@ buildPythonPackage rec { | |||
sha256 = "47f62fda3d6b9a37aa407a6b78c80e91240aa71e61191ed00da68b02839fe258"; | |||
}; | |||
|
|||
patches = [ ./prov-version.patch ]; |
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 add a comment that links to this issue: nipy/nipype#2240
`pythonPackages.prov` has been bumped to `1.5.2`, however `nipype` pinned `prov` to `1.5.0`. Patching `nipype/info.py` fixes this issue by bumping to the current `prov` version in nixpkgs. See https://hydra.nixos.org/build/71817962/log See ticket NixOS#36453
@dotlambda fine now? %) |
@GrahamcOfBorg build python2.pkgs.nipype python3.pkgs.nipype |
Success on aarch64-linux (full log) Attempted: python2.pkgs.nipype, python3.pkgs.nipype Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python2.pkgs.nipype, python3.pkgs.nipype Partial log (click to expand)
|
@GrahamcOfBorg build python2.pkgs.nipype python3.pkgs.nipype |
Success on aarch64-linux (full log) Attempted: python2.pkgs.nipype, python3.pkgs.nipype Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python2.pkgs.nipype, python3.pkgs.nipype Partial log (click to expand)
|
@dotlambda awesome! Thanks a lot for the feedback and support in the last time! %) |
Motivation for this change
pythonPackages.prov
has been bumped to1.5.2
, howevernipype
pinned
prov
to1.5.0
. Patchingnipype/info.py
fixes this issue bybumping to the current
prov
version in nixpkgs.See https://hydra.nixos.org/build/71817962/log
See ticket #36453
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)