-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Twitch-Chat-Downloader: init with dependencies #71166
Conversation
2659215
to
039013c
Compare
039013c
to
19c9efe
Compare
|
||
buildPythonPackage rec { | ||
pname = "Rx"; | ||
version = "3.0.1"; |
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.
We can only have 1 version of package in nixpkgs, this is to avoid situations where two packages bring into the two versions as dependencies, only one of them will be able to be used at runtime.
If you're freezing 1.6 for python2, then that's different, and you will need to add something similar to:
imbalanced-learn =
if isPy27 then
callPackage ../development/python-modules/imbalanced-learn/0.4.nix { }
else
callPackage ../development/python-modules/imbalanced-learn { };
this way, only version is visible for a given 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.
It looks like nothing uses Rx version 1.6 currently. I'll upgrade it in-place instead of adding a new version.
|
||
# Twitch-Chat-Download has no tests at all. Sanity check the command manually. | ||
checkPhase = '' | ||
"$out"/bin/tcd --help >/dev/null || exit 1 |
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 || exit 1
will only be called if the previous command failed, just return the original value
"$out"/bin/tcd --help >/dev/null || exit 1 | |
"$out"/bin/tcd --help >/dev/null |
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 for pointing this out. For some reason, I assumed -e
was not in effect.
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 can think of absolutely no good reason why a package would want to import from pipenv
.
I had a quick look at the setup.py
and what is done there is just ridiculous. They use pipenv
to create an env, an then use pipenv
to convert the locked dependencies for setuptools
. I get why they do that as it simplifies some of their work but its not what should be done in a setup.py
. That whole part needs to be patched out before it can go in Nixpkgs.
Pipenv should not be module but remain an application.
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 can think of absolutely no good reason why a package would want to import from
pipenv
.I had a quick look at the
setup.py
and what is done there is just ridiculous. They usepipenv
to create an env, an then usepipenv
to convert the locked dependencies forsetuptools
. I get why they do that as it simplifies some of their work but its not what should be done in asetup.py
. That whole part needs to be patched out before it can go in Nixpkgs.Pipenv should not be module but remain an application.
Good points. Patching the pipenv-using packages was easy, so I'll do that instead of exposing pipenv as a library.
19c9efe
to
4fa8751
Compare
4fa8751
to
bb78090
Compare
I think I see the "v" arrow you're talking about. When I click it, a panel opens with the text "FRidh requested changes" and a "..." button. Clicking the "..." button shows a menu with one option: "See review". From there, I don't see any button labelled "dismiss". |
this is what mine looks like |
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.
otherwise LGTM, assuming everything has some tests
I don't think any of these packages have significant tests of their own. |
673f858
to
04480c4
Compare
I see only "See review": |
PetterKraabol/Twitch-Python#13 was closed, if you want to wait until the next release, and update this, then I think we can have another go |
Hi, I've removed the pipenv dependecy from setup.py in twitch-python and twitch-chat-downloader. |
8fcf0c3
to
06567cf
Compare
Gross patch removed. (Thanks @jonringer and @PetterKraabol!) This PR is ready for review again. |
graphql-core's build seems to be broken. I'll investigate. |
@GrahamcOfBorg build twitch-chat-downloader |
I want to upgrade rx (a Python library) from version 1.6 to version 3.0. graphql-core version 2.3.1 requires rx version <2. This prevents me from upgrading rx. Upgrade graphql-core to the latest release, removing its dependency on rx entirely. Unfortunately, graphql-server-core (which depends on graphql-core) does not have a release which works with this latest version of graphql-core. Because graphql-server-core isn't used anywhere yet [1], disable the package to unblock me upgrading rx. [1] NixOS#80828 (comment)
Rx version 1.6 is incompatible with Rx version 3.x. I want to add a package which depends on Rx version 3.x (twitch-python). Upgrade Rx to version 3.0.1. From what I can tell, no packages use Rx version 1.6, so this commit shouldn't break any existing builds (aside from possibly Rx itself).
I want to add Twitch-Chat-Downloader to Nixpkgs. Twitch-Chat-Downloader depends on the twitch-python package. Add its dependency.
Add Petter Kraabøl's Twitch-Chat-Downloader tool to Nixpkgs, enabling people to archive Twitch [1] messaging history. [1] https://www.twitch.tv/
06567cf
to
97e1109
Compare
superseded by #112712 |
Motivation for this change
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)Notify maintainers
cc @berdario @thanegill