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: add plexauth
, plexapi
, plexwebsocket
#78011
Conversation
54f61c7
to
883c992
Compare
Two of these don't have any tests in their source. What is the convention for doCheck in that case? I left it in and set it to For Is this expected? Does that mean pytest runs them silently if they pass? Thanks for the info....
|
propagatedBuildInputs = [ requests tqdm websocket_client ]; | ||
|
||
doCheck = true; | ||
checkInputs = [ pytest pillow ]; |
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.
or disable python2.7. I'm fine with either tbh
checkInputs = [ pytest pillow ]; | |
checkInputs = [ pytest pillow ] | |
++ lib.optionals isPy27 [ mock ]; |
builder for '/nix/store/babalivzngycash5y3vk2xra333q9cv1-python2.7-PlexAPI-3.2.0.drv' failed with exit code 1; last 10 log lines:
from mock import patch, MagicMock
ImportError: No module named mock
----------------------------------------------------------------------
Ran 7 tests in 0.000s
FAILED (errors=7)
Test failed: <unittest.runner.TextTestResult run=7 errors=7 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=7 errors=7 failures=0>
So how do I disable packages for python2? All I can think of is adding the attribute to python3Packages instead of all python packages, but it seems like that would only be for a single python3 version instead all of the python3 versions which might be preferred?
|
5a5e3f0
to
882f8c2
Compare
Cool. I figured it out from your other review. I assume that the disablement should propogate too? IE: if aiohttp is disabled in py27, then anything that uses it should also be explicitly disabled? That's what I did here for the two that use aiohttp. Thanks! Hopefully its good to go. |
if aiohttp is disabled, then this version will also be disabled |
882f8c2
to
b43ea90
Compare
Suggested changes applied. Thanks! |
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.
diff LGTM
commits LGTM
python38 failures related to aiohttp package
[8 built (1 failed), 2 copied (0.5 MiB), 0.1 MiB DL]
error: build of '/nix/store/rjhi7a5gaxb9g514m4lxnip2lclbfbhj-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/78011
2 package failed to build:
python38Packages.plexauth python38Packages.plexwebsocket
5 package built:
python27Packages.plexapi python37Packages.plexapi python37Packages.plexauth python37Packages.plexwebsocket python38Packages.plexapi
@GrahamcOfBorg build python27Packages.plexapi python37Packages.plexapi python37Packages.plexauth python37Packages.plexwebsocket python38Packages.plexapi |
darwin builds are timing out, if it's broken, we will revisit it :) |
Motivation for this change
These are used by
home-assistant
when theplex
component is used.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)