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

hangups: 0.4.4 #38255

Closed
wants to merge 3 commits into from
Closed

hangups: 0.4.4 #38255

wants to merge 3 commits into from

Conversation

aswan89
Copy link

@aswan89 aswan89 commented Mar 31, 2018

Motivation for this change

Addition of hangups application/library and required dependencies to nixpkgs.
Allows use of Google hangouts in terminal.

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.

Copy link
Member

@FRidh FRidh left a comment

Choose a reason for hiding this comment

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

Please also check the contribution guidelines regarding the naming of commits.

@@ -0,0 +1,59 @@
{ pkgs, stdenv, python3 }:
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 pass in pkgs

sha256 = "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776";
};

name = "${pname}-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

The name attribute is added by buildPython* and should therefore be removed.

inherit pname version;
sha256 = "1ck65ycw51f4xnbh4sg9axgbl81q3azpzvd5f2nvrv2fla9m8r08";
};
name = "${pname}-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

The name attribute is added by buildPython* and should therefore be removed.

@@ -0,0 +1,59 @@
{ pkgs, stdenv, python3 }:
let
packageOverrides = self: super:{
Copy link
Member

Choose a reason for hiding this comment

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

👍

};
pythonPackages = (python3.override { inherit packageOverrides;}).pkgs;

in python3.pkgs.buildPythonApplication rec {
Copy link
Member

Choose a reason for hiding this comment

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

pythonPackages

};
});
};
pythonPackages = (python3.override { inherit packageOverrides;}).pkgs;
Copy link
Member

Choose a reason for hiding this comment

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

Please add a space after ;

sha256 = "1sm8c9mfcdyhlb6k2cq1r4j3zpc4z47z7zs8yycmf45nmv0vg0h9";
};

doCheck = true;
Copy link
Member

Choose a reason for hiding this comment

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

not necessary, is set automatically

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.readlike python3.pkgs.readlike python2.pkgs.ReParser python3.pkgs.ReParser hangups

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python2.pkgs.ReParser, python3.pkgs.ReParser, hangups

Partial log (click to expand)

writing top-level names to hangups.egg-info/top_level.txt
reading manifest file 'hangups.egg-info/SOURCES.txt'
writing manifest file 'hangups.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
�[31;1merror:�[0m build of '/nix/store/yn0512lk1gcw535za7v9qzj2gklga7zj-python2.7-ReParser-1.4.3.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python2.pkgs.ReParser, python3.pkgs.ReParser, hangups

Partial log (click to expand)

writing top-level names to hangups.egg-info/top_level.txt
reading manifest file 'hangups.egg-info/SOURCES.txt'
writing manifest file 'hangups.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.001s

OK
�[31;1merror:�[0m build of '/nix/store/1mn9qw0zlrillcmbg9djyrniwkx9nan7-python2.7-ReParser-1.4.3.drv' failed

@dotlambda
Copy link
Member

I think you need to set disabled = !isPy3k for ReParser.

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.readlike python3.pkgs.readlike python3.pkgs.ReParser hangups

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups

Partial log (click to expand)

running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/rxjymrsla65igw2zjpp31az8zksjbb8l-python2.7-readlike-0.1.2
/nix/store/nrxqrjjfszga3fgd2dfrmbwvinfp4avs-python3.6-readlike-0.1.2
/nix/store/b5p4y4r8751byzxn6d91ap1yd4wla2lh-python3.6-ReParser-1.4.3
/nix/store/1n794p4bj9mh2r589n9rbdfcgi8544kh-hangups-0.4.4

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups

Partial log (click to expand)

running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.001s

OK
/nix/store/6vxqa24d85skh0lzscixz65miaxnwv9r-python2.7-readlike-0.1.2
/nix/store/86kdrz90wiv1zbsb5pgl51dcbr219hsx-python3.6-readlike-0.1.2
/nix/store/ggvjnrb1r1jml0i10dqgr0x1i33gl21m-python3.6-ReParser-1.4.3
/nix/store/l19jlz0w8ad023pi4mnhg1xcz2f4r38m-hangups-0.4.4

@dotlambda
Copy link
Member

Ran 0 tests in 0.000s

Please add appropriate checkPhases.

added explicit check phase
python3 setup.py check --metadata --restructuredtext --strict
'';

doCheck = true;
Copy link
Member

Choose a reason for hiding this comment

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

not needed

sha256 = "1sm8c9mfcdyhlb6k2cq1r4j3zpc4z47z7zs8yycmf45nmv0vg0h9";
};

checkInputs = [
Copy link
Member

Choose a reason for hiding this comment

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

please use with pythonPackages

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.readlike python3.pkgs.readlike python3.pkgs.ReParser hangups

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups

Partial log (click to expand)

stripping (with command strip and flags -S) in /nix/store/gyyxhn0gz00fwqhfsqv5cw1a798sp366-hangups-0.4.4/lib  /nix/store/gyyxhn0gz00fwqhfsqv5cw1a798sp366-hangups-0.4.4/bin
patching script interpreter paths in /nix/store/gyyxhn0gz00fwqhfsqv5cw1a798sp366-hangups-0.4.4
checking for references to /tmp/nix-build-hangups-0.4.4.drv-0 in /nix/store/gyyxhn0gz00fwqhfsqv5cw1a798sp366-hangups-0.4.4...
wrapping `/nix/store/gyyxhn0gz00fwqhfsqv5cw1a798sp366-hangups-0.4.4/bin/hangups'...
running install tests
running check
/nix/store/rxjymrsla65igw2zjpp31az8zksjbb8l-python2.7-readlike-0.1.2
/nix/store/nrxqrjjfszga3fgd2dfrmbwvinfp4avs-python3.6-readlike-0.1.2
/nix/store/b5p4y4r8751byzxn6d91ap1yd4wla2lh-python3.6-ReParser-1.4.3
/nix/store/gyyxhn0gz00fwqhfsqv5cw1a798sp366-hangups-0.4.4

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups

Partial log (click to expand)

stripping (with command strip and flags -S) in /nix/store/3jd18yhfrqma0vklm6kznr06b4qqid93-hangups-0.4.4/lib  /nix/store/3jd18yhfrqma0vklm6kznr06b4qqid93-hangups-0.4.4/bin
patching script interpreter paths in /nix/store/3jd18yhfrqma0vklm6kznr06b4qqid93-hangups-0.4.4
checking for references to /build in /nix/store/3jd18yhfrqma0vklm6kznr06b4qqid93-hangups-0.4.4...
wrapping `/nix/store/3jd18yhfrqma0vklm6kznr06b4qqid93-hangups-0.4.4/bin/hangups'...
running install tests
running check
/nix/store/6vxqa24d85skh0lzscixz65miaxnwv9r-python2.7-readlike-0.1.2
/nix/store/86kdrz90wiv1zbsb5pgl51dcbr219hsx-python3.6-readlike-0.1.2
/nix/store/ggvjnrb1r1jml0i10dqgr0x1i33gl21m-python3.6-ReParser-1.4.3
/nix/store/3jd18yhfrqma0vklm6kznr06b4qqid93-hangups-0.4.4


meta = with stdenv.lib; {
description = "The first third-party instant messaging client for Google Hangouts";
homepage = http://github.com/tdryer/hangups;
Copy link
Member

Choose a reason for hiding this comment

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

https

};

checkInputs = [
pythonPackages.docutils
Copy link
Member

Choose a reason for hiding this comment

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

probably not needed

];

checkPhase = ''
python3 setup.py check --metadata --restructuredtext --strict
Copy link
Member

Choose a reason for hiding this comment

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

That doesn't really test anything. Something like

checkPhase = ''
  py.test
'';

should work. However, you'll need to use fetchFromGitHub as the tests are not included in the PyPI tarball.

inherit pname version;
sha256 = "1ck65ycw51f4xnbh4sg9axgbl81q3azpzvd5f2nvrv2fla9m8r08";
};

Copy link
Member

Choose a reason for hiding this comment

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

checkPhase needed

inherit pname version;
sha256 = "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776";
};

Copy link
Member

Choose a reason for hiding this comment

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

Please set doCheck = false and add a comment that there are no tests.

ReParser
appdirs
urwid
protobuf3_1
Copy link
Member

@dotlambda dotlambda Apr 7, 2018

Choose a reason for hiding this comment

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

Please use protobuf and pin the version as for the packages above. You'll have to use

protobuf = super.protobuf.override {
  protobuf = protobuf3_1;
};

however and add protobuf3_1 as an argument.

@wmertens wmertens changed the title Hangups added hangups: 0.4.4 Apr 8, 2018
@aswan89 aswan89 closed this Aug 2, 2018
@aswan89 aswan89 deleted the hangups-added branch August 2, 2018 19:59
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

4 participants