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

pythonPackages.discordpy: Use websockets==3.4 #34353

Closed
wants to merge 1 commit into from

Conversation

dotlambda
Copy link
Member

Motivation for this change

discord.py only works with websockets<4
See Rapptz/discord.py#973

I have not tested this, since I have no use for discord.py.
I only came across the problem using nox-review on #34352.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

discord.py only works with websockets<4
See Rapptz/discord.py#973
@dotlambda
Copy link
Member Author

@GrahamcOfBorg build python3Packages.discordpy

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-linux

Installing collected packages: discord.py
Successfully installed discord.py-0.16.12
/tmp/nix-build-python3.6-discord.py-0.16.12.drv-0/discord.py-0.16.12
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/0jlffjsyfnxq2vb3avgm3an4v7m4c1sy-python3.6-discord.py-0.16.12
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/0jlffjsyfnxq2vb3avgm3an4v7m4c1sy-python3.6-discord.py-0.16.12/lib 
patching script interpreter paths in /nix/store/0jlffjsyfnxq2vb3avgm3an4v7m4c1sy-python3.6-discord.py-0.16.12
checking for references to /tmp/nix-build-python3.6-discord.py-0.16.12.drv-0 in /nix/store/0jlffjsyfnxq2vb3avgm3an4v7m4c1sy-python3.6-discord.py-0.16.12...
/nix/store/0jlffjsyfnxq2vb3avgm3an4v7m4c1sy-python3.6-discord.py-0.16.12

Full log: https://logs.nix.gsc.io/?key=nixos/nixpkgs.34353

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: aarch64-linux

Installing collected packages: discord.py
Successfully installed discord.py-0.16.12
/build/discord.py-0.16.12
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/dr8bayf7qh48gv3aqyim6dv3hvz804n1-python3.6-discord.py-0.16.12
strip is /nix/store/jwz859pxqj7sl2dbwvmxkx68jp774izb-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/dr8bayf7qh48gv3aqyim6dv3hvz804n1-python3.6-discord.py-0.16.12/lib
patching script interpreter paths in /nix/store/dr8bayf7qh48gv3aqyim6dv3hvz804n1-python3.6-discord.py-0.16.12
checking for references to /build in /nix/store/dr8bayf7qh48gv3aqyim6dv3hvz804n1-python3.6-discord.py-0.16.12...
/nix/store/dr8bayf7qh48gv3aqyim6dv3hvz804n1-python3.6-discord.py-0.16.12

Full log: https://logs.nix.gsc.io/?key=nixos/nixpkgs.34353

, asyncio
, aiohttp
, websockets
, pynacl
}:

let
Copy link
Member

Choose a reason for hiding this comment

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

The purpose of python-packages.nix is to provide a coherent set of packages that work together. We cannot have any overrides inside python-packages.nix because that may cause collisions. In this case we likely have to mark the package as broken.

Copy link
Member Author

Choose a reason for hiding this comment

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

I am doing the same in #34188 which probably means it can only be packaged as an application.

Copy link
Member

Choose a reason for hiding this comment

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

Correct.

@FRidh FRidh self-assigned this Jan 29, 2018
@FRidh FRidh closed this in #34392 Jan 29, 2018
@dotlambda dotlambda deleted the discordpy branch February 8, 2018 11:00
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