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
homely: init at 0.15.3 #49054
homely: init at 0.15.3 #49054
Conversation
@@ -0,0 +1,29 @@ | |||
{ | |||
stdenv |
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 format as either
{ stdenv
, pythonPackages
}:
or
{ stdenv, pythonPackages }:
|
||
buildInputs = with pythonPackages; [ attrs setuptools_scm ]; | ||
propagatedBuildInputs = with pythonPackages; [ | ||
requests |
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 indent these using two spaces, like in the rest of the expression.
@GrahamcOfBorg build homely |
Looks like there are no tests, so please add |
Success on aarch64-linux (full log) Attempted: homely Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: homely Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: homely Partial log (click to expand)
|
I fixed the mentioned issues, thanks for the feedback |
pythondaemon | ||
]; | ||
|
||
doCheck = false; |
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.
Also works with this removed
Ping? Will merge if you fix above issue |
I fixed the bad rebase. What about the |
@srhb asked you to add |
@lokke-me Sorry for the delay! Could you just rebase your PR on latest master (basically just putting your block in |
Thank you for your contributions.
|
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
@@ -17273,6 +17273,8 @@ with pkgs; | |||
|
|||
hovercraft = python3Packages.callPackage ../applications/misc/hovercraft { }; | |||
|
|||
homely = callPackage ../applications/misc/homely {}; |
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.
homely = callPackage ../applications/misc/homely {}; | |
homely = python3Packages.callPackage ../applications/misc/homely {}; |
@@ -0,0 +1,26 @@ | |||
{ stdenv, pythonPackages }: |
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.
And than we can list all python modules here explicit instead of pythonPackages.
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.
As a concrete GitHub suggestion,
{ stdenv, pythonPackages }: | |
{ stdenv | |
, buildPythonApplication | |
, fetchPypi | |
, attrs | |
, setuptools_scm | |
, requests | |
, simplejson | |
, click | |
, pythondaemon | |
}: | |
buildPythonApplication rec { | |
version = "0.15.3"; | |
pname = "homely"; | |
src = fetchPypi { | |
inherit pname version; | |
sha256 = "2aa7461b583660bf8d9ad776c184fa7a1272141a5c0faaf78a76bc3e8c39db6d"; | |
}; | |
buildInputs = [ attrs setuptools_scm ]; | |
propagatedBuildInputs = [ | |
requests | |
simplejson | |
click | |
pythondaemon | |
]; |
Result of |
1 similar comment
Result of |
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.
Builds and runs for me. Upstream has released 0.16 in the meantime (sorry).
As written, this derivation uses Python 2, which is undesirable, but if you take Mic92 and my suggestions then this should be good-to-go.
@@ -0,0 +1,26 @@ | |||
{ stdenv, pythonPackages }: |
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.
As a concrete GitHub suggestion,
{ stdenv, pythonPackages }: | |
{ stdenv | |
, buildPythonApplication | |
, fetchPypi | |
, attrs | |
, setuptools_scm | |
, requests | |
, simplejson | |
, click | |
, pythondaemon | |
}: | |
buildPythonApplication rec { | |
version = "0.15.3"; | |
pname = "homely"; | |
src = fetchPypi { | |
inherit pname version; | |
sha256 = "2aa7461b583660bf8d9ad776c184fa7a1272141a5c0faaf78a76bc3e8c39db6d"; | |
}; | |
buildInputs = [ attrs setuptools_scm ]; | |
propagatedBuildInputs = [ | |
requests | |
simplejson | |
click | |
pythondaemon | |
]; |
sha256 = "2aa7461b583660bf8d9ad776c184fa7a1272141a5c0faaf78a76bc3e8c39db6d"; | ||
}; | ||
|
||
buildInputs = with pythonPackages; [ attrs setuptools_scm ]; |
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.
Is attrs
required? I tried removing it (with Mic92's suggestion) and the package built fine.
I think the author lost interest for this one. Maybe someone else could make a PR if they are interested. |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)