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
WIP python37Packages.textacy: fixing broken package #65022
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.
This package is in an invalid state.
I tried enabling tests, and found that it was broken by scikit-learn
issue submitted upstream here:
chartbeat-labs/textacy#260
Builds for me non-nixos linux x86_64
What do you mean by this? |
scikit-learn 0.21 breaks how the package is used. If you enable the tests you will get this error: Really long error msg
It builds because we dont do any tests, but if you were to use the package, usage of the TopicModel class will break without us using a pinned version of scikit-learn 0.20 |
Ahh good well caught. |
What this is also means is that textacy on master is also broken, you just wont know it until you use it :) |
@jonringer Thanks for the feedback. I was poking around in the awscli package recently and noticed that it overrides some python dependencies such as pyyaml which is a couple of minor versions behind. Does anyone have any comments on whether that would be an appropriate solution in this case to pin scitkit-learn to <0.21? |
No, we cannot have multiple versions of a library in python-packages.nix |
Makes sense. I was hoping to get this package in to a working state then have a go at upgrading it to newer versions (they are up at 0.8.x now). Will leave this PR open and circle back once upstream supports scikit 0.21. |
Closing as this has all been taken care of by @jonringer in #68093 :) |
Motivation for this change
Added missing dependency and fixed a broken package version restriction.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)