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.image-match: init at 1.1.2 #43723
Conversation
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 use image-match without touching the elasticsearch functionality.
That's ok.
Meta is missing. Also, I like you to be maintainer of packages you add.
sha256 = "0vlmpidmhkpgdzw2k03x5layhijcrjpmyfd93yv2ls77ihz00ix5"; | ||
}; | ||
|
||
buildInputs = [ pytestrunner ]; |
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.
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.
The pytestrunner
is part of the setup_requires
, I thought that meant it was required regardless of tests.
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 correct, buildInputs
it is.
Looking at their setup.py
there seems to be no need for having it in setup_requires
.
|
||
# ignore elasticsearch requirement due to version incompatibility | ||
installFlags = [ "--no-deps" ]; | ||
doCheck = false; |
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.
include motivation for disabling tests
e2134a0
to
c073f32
Compare
Added everything. |
@GrahamcOfBorg build pythonPackages.image-match python3Packages.image-match |
Success on x86_64-linux (full log) Attempted: pythonPackages.image-match, python3Packages.image-match Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: pythonPackages.image-match, python3Packages.image-match Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: pythonPackages.image-match, python3Packages.image-match Partial log (click to expand)
|
c073f32
to
664077d
Compare
Fixed license issue. |
@FRidh For any derivation using this package as an
On their derivation as well, since the settings for this derivation don't appear to propagate. This is not really nice. Maybe we should have elasticsearch 5.0.0 packaged as well in nixpkgs then? |
]; | ||
|
||
# ignore elasticsearch requirement due to version incompatibility | ||
installFlags = [ "--no-deps" ]; |
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.
it's better to patch setup.py
/ requirements.txt
/ whatever file to remove the specific dependency.
Good idea. Which phase would that be? And do I use |
`postPatch` and `substituteInPlace`
…On Thu, Jul 19, 2018 at 9:11 AM, Roger Qiu ***@***.***> wrote:
Good idea. Which phase would that be? And do I use sed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43723 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACB878TyUi8rUPqWgvU2U19xKgG2FmOKks5uIDELgaJpZM4VUILz>
.
|
664077d
to
7fdefd1
Compare
@FRidh I have done that now by removing the elasticsearch requirement from the setup.py. Tests still will fail due to the lack of elasticsearch, but at least this is more robust. Note that I noticed that I have to actually add in the dask dependency for some reason. I wonder if it is meant to be a propagated dependency or only a |
7fdefd1
to
627145c
Compare
I added dask to |
@FRidh Can you confirm that moving Basically any subsequent derivation However it doesn't make much sense that whenever |
I've pushed 5fba38d. See that commit and previous ones on what I did with |
I see. However that means dask is no longer needed in the package function in default.nix. I think you forgot to remove it. |
Motivation for this change
Added image-match.
One problem with this is that
image-match
requires elasticsearch at below 6.0.0 according to setup.py. Since there is no elasticsearch below 6.0.0 in nixpkgs, I just ignored that dependency. I use image-match without touching the elasticsearch functionality.I asked if they could bump up the version constraint anyway: rhsimplex/image-match#97
Furthermore the I could not use
fetchPypi
due to: #43721Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)