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
hangups: 0.4.4 #38255
Conversation
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.
Please also check the contribution guidelines regarding the naming of commits.
@@ -0,0 +1,59 @@ | |||
{ pkgs, stdenv, python3 }: |
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.
Don't pass in pkgs
sha256 = "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"; | ||
}; | ||
|
||
name = "${pname}-${version}"; |
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.
The name
attribute is added by buildPython*
and should therefore be removed.
inherit pname version; | ||
sha256 = "1ck65ycw51f4xnbh4sg9axgbl81q3azpzvd5f2nvrv2fla9m8r08"; | ||
}; | ||
name = "${pname}-${version}"; |
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.
The name
attribute is added by buildPython*
and should therefore be removed.
@@ -0,0 +1,59 @@ | |||
{ pkgs, stdenv, python3 }: | |||
let | |||
packageOverrides = self: super:{ |
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.
👍
}; | ||
pythonPackages = (python3.override { inherit packageOverrides;}).pkgs; | ||
|
||
in python3.pkgs.buildPythonApplication rec { |
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.
pythonPackages
}; | ||
}); | ||
}; | ||
pythonPackages = (python3.override { inherit packageOverrides;}).pkgs; |
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.
Please add a space after ;
sha256 = "1sm8c9mfcdyhlb6k2cq1r4j3zpc4z47z7zs8yycmf45nmv0vg0h9"; | ||
}; | ||
|
||
doCheck = true; |
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.
not necessary, is set automatically
@GrahamcOfBorg build python2.pkgs.readlike python3.pkgs.readlike python2.pkgs.ReParser python3.pkgs.ReParser hangups |
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)
|
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)
|
I think you need to set |
@GrahamcOfBorg build python2.pkgs.readlike python3.pkgs.readlike python3.pkgs.ReParser hangups |
Success on x86_64-linux (full log) Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups Partial log (click to expand)
|
Please add appropriate |
added explicit check phase
python3 setup.py check --metadata --restructuredtext --strict | ||
''; | ||
|
||
doCheck = true; |
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.
not needed
sha256 = "1sm8c9mfcdyhlb6k2cq1r4j3zpc4z47z7zs8yycmf45nmv0vg0h9"; | ||
}; | ||
|
||
checkInputs = [ |
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.
please use with pythonPackages
@GrahamcOfBorg build python2.pkgs.readlike python3.pkgs.readlike python3.pkgs.ReParser hangups |
Success on x86_64-linux (full log) Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.readlike, python3.pkgs.readlike, python3.pkgs.ReParser, hangups Partial log (click to expand)
|
|
||
meta = with stdenv.lib; { | ||
description = "The first third-party instant messaging client for Google Hangouts"; | ||
homepage = http://github.com/tdryer/hangups; |
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.
https
}; | ||
|
||
checkInputs = [ | ||
pythonPackages.docutils |
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.
probably not needed
]; | ||
|
||
checkPhase = '' | ||
python3 setup.py check --metadata --restructuredtext --strict |
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.
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"; | ||
}; | ||
|
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.
checkPhase
needed
inherit pname version; | ||
sha256 = "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"; | ||
}; | ||
|
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.
Please set doCheck = false
and add a comment that there are no tests.
ReParser | ||
appdirs | ||
urwid | ||
protobuf3_1 |
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.
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.
Motivation for this change
Addition of hangups application/library and required dependencies to nixpkgs.
Allows use of Google hangouts in terminal.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)