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

homely: init at 0.15.3 #49054

Closed
wants to merge 2 commits into from
Closed

homely: init at 0.15.3 #49054

wants to merge 2 commits into from

Conversation

lokke-me
Copy link

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@@ -0,0 +1,29 @@
{
stdenv
Copy link
Contributor

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
Copy link
Contributor

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.

@srhb
Copy link
Contributor

srhb commented Oct 25, 2018

@GrahamcOfBorg build homely

@srhb
Copy link
Contributor

srhb commented Oct 25, 2018

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

Looks like there are no tests, so please add doCheck = false; as well. :)

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: homely

Partial log (click to expand)

writing entry points to homely.egg-info/entry_points.txt
reading manifest file 'homely.egg-info/SOURCES.txt'
writing manifest file 'homely.egg-info/SOURCES.txt'
running build_ext

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

OK
/nix/store/yj3q9789ni1kszm37r9hbp84rwi4n0pm-homely-0.15.3

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: homely

Partial log (click to expand)

writing entry points to homely.egg-info/entry_points.txt
reading manifest file 'homely.egg-info/SOURCES.txt'
writing manifest file 'homely.egg-info/SOURCES.txt'
running build_ext

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

OK
/nix/store/kds9cahjk7wx5w53x21dqrsbk8pkc30f-homely-0.15.3

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: homely

Partial log (click to expand)

writing entry points to homely.egg-info/entry_points.txt
reading manifest file 'homely.egg-info/SOURCES.txt'
writing manifest file 'homely.egg-info/SOURCES.txt'
running build_ext

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

OK
/nix/store/nv7s43dpgm9yqrbf86c71wicas28ccl7-homely-0.15.3

@lokke-me
Copy link
Author

I fixed the mentioned issues, thanks for the feedback

pythondaemon
];

doCheck = false;
Copy link
Member

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

@infinisil
Copy link
Member

Ping? Will merge if you fix above issue

@infinisil
Copy link
Member

Oh haha, I just now realized that @srhb said to add doCheck = false; and I said to remove it again.

@srhb I think it's better to make it try to run tests anyways, even if there aren't any, because future versions of the package might do have them.

@lokke-me
Copy link
Author

I fixed the bad rebase. What about the doCheck = false; option?

@Mic92
Copy link
Member

Mic92 commented Nov 14, 2018

@srhb asked you to add doCheck = false; to the package since we run by default tests for python packages. There are no tests included in the python package. The github release would include tests, but at least some of those require network access: https://github.com/phodge/homely/blob/master/test/test_gitvcs.py

@Ekleog
Copy link
Member

Ekleog commented Mar 26, 2019

@lokke-me Sorry for the delay! Could you just rebase your PR on latest master (basically just putting your block in maintainer-list.nix at the right alphabetical location), so that I could trigger a final ofborg run and merge? Feel free to poke me if I don't do in the next few days, or there's a risk that this slips under the radar again :/

@stale
Copy link

stale bot commented Jun 2, 2020

Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the
    related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on
    irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2020
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2020
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 {};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
homely = callPackage ../applications/misc/homely {};
homely = python3Packages.callPackage ../applications/misc/homely {};

@@ -0,0 +1,26 @@
{ stdenv, pythonPackages }:
Copy link
Member

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.

Copy link
Contributor

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,

Suggested change
{ 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
];

@lukegb
Copy link
Contributor

lukegb commented Nov 25, 2020

Result of nixpkgs-review pr 49054 1

1 similar comment
@lukegb
Copy link
Contributor

lukegb commented Nov 25, 2020

Result of nixpkgs-review pr 49054 1

Copy link
Contributor

@lukegb lukegb left a 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 }:
Copy link
Contributor

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,

Suggested change
{ 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 ];
Copy link
Contributor

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.

@Mic92
Copy link
Member

Mic92 commented Nov 25, 2020

I think the author lost interest for this one. Maybe someone else could make a PR if they are interested.

@Mic92 Mic92 closed this Nov 25, 2020
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

8 participants