Skip to content
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

py3status: add dbus-python dependency #72297

Merged
merged 1 commit into from Oct 30, 2019

Conversation

carlosdagos
Copy link
Member

This makes the spotify module work.

Because the derivation is missing the dependency, the module refuses to load. The usage import is here: https://github.com/ultrabug/py3status/blob/master/py3status/modules/spotify.py#L63

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @

This makes the spotify module work.
@FRidh
Copy link
Member

FRidh commented Oct 30, 2019

What's the impact on the closure size?

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nix-review passes on NixOS
diff LGTM
fixes import issue

[4 built, 8 copied (2.3 MiB), 0.9 MiB DL]
https://github.com/NixOS/nixpkgs/pull/72297
3 package were build:
python27Packages.py3status python37Packages.py3status python38Packages.py3status
[nix-shell:/home/jon/.cache/nix-review/pr-72297]$ nix path-info -Sh ./results/python37Packages.py3status
/nix/store/3z4cgif8z1j1hqhiq10i95sf1spd35f7-python3.7-py3status-3.21     635.2M
[08:43:50] jon@jon-desktop /home/jon/projects/nixpkgs (master)
$ nix path-info -Sh ./result
/nix/store/yknd6wq5vbls0cpyp7fmw6g71lyaaivk-python3.7-py3status-3.21     630.0M

master:

[nix-shell:/home/jon/projects/nixpkgs]$ python
Python 3.7.4 (default, Jul  8 2019, 18:31:06)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import py3status.modules.spotify
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nix/store/p4afrmyw7g0cz97m7dx173q78j13fj0m-python3.7-py3status-3.20/lib/python3.7/site-packages/py3status/modules/spotify.py", line 58, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'
>>>

PR:

[nix-shell:/home/jon/.cache/nix-review/pr-72297]$ nix-shell --pure -p "with import ./nixpkgs {}; python3Packages.py3status"

[nix-shell:/home/jon/.cache/nix-review/pr-72297]$ python
Python 3.7.5 (default, Oct 14 2019, 23:08:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import py3status.modules.spotify
>>>

@jonringer
Copy link
Contributor

@GrahamcOfBorg build python27Packages.py3status python37Packages.py3status python38Packages.py3status

@jonringer jonringer merged commit 9a87724 into NixOS:master Oct 30, 2019
@carlosdagos carlosdagos deleted the py3status-dbus branch November 6, 2019 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants