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.yowsup: disable python2 build #31519

Merged
merged 1 commit into from Nov 11, 2017
Merged

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Nov 11, 2017

Motivation for this change

I'm not exactly sure why, but it seems as the python2 build
of yowsup is breaking.
see tgalal/yowsup#2325

It seems to be recommended to use python3 for building and disable
the usage of python2 which fixed the build.

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.

@Ma27 Ma27 requested a review from FRidh as a code owner November 11, 2017 08:38
@Ma27
Copy link
Member Author

Ma27 commented Nov 11, 2017

I'll run nox-review to see if my change broke something else.

@Ma27
Copy link
Member Author

Ma27 commented Nov 11, 2017

→ nox-review pr 31519
=== Reviewing PR 31519 : pythonPackages.yowsup: disable python2 build
==> We're in a git repo, trying to fetch it
==> Fetching base (master)
==> Fetching PR
==> Fetching extra history for merging
==> Merging PR into base
Auto-merging pkgs/top-level/python-packages.nix
Nothing changed

@@ -1,10 +1,14 @@
{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest }:
{ buildPythonPackage, stdenv, fetchFromGitHub, six, python-axolotl, pytest
, disabled
Copy link
Member

Choose a reason for hiding this comment

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

don't add it as parameter. Just add it directly to the call to buildPythonPackage.


buildPythonPackage rec {
name = "${pname}-${version}";
pname = "yowsup";
version = "2.5.2";

inherit disabled;
Copy link
Member

Choose a reason for hiding this comment

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

...and please add a reason for disabling a package.

I'm not exactly sure why, but it seems as the python2 build
of yowsup is breaking.
see tgalal/yowsup#2325

It seems to be recommended to use python3 for building and disable
the usage of python2 which fixed the build.
@Ma27
Copy link
Member Author

Ma27 commented Nov 11, 2017

@FRidh I linked the issue in a comment above the disable = ...; expression and added the py3 logic to the derivation.
Is everything fine for you now? :)

@FRidh FRidh merged commit a1911a0 into NixOS:master Nov 11, 2017
@Ma27 Ma27 deleted the fix-yowsup branch November 11, 2017 08:51
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