Skip to content

Commit

Permalink
wakeonlan: init at 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Feb 26, 2018
1 parent 02ba80a commit 88b7830
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkgs/development/python-modules/wakeonlan/default.nix
@@ -0,0 +1,19 @@
{ stdenv, fetchPypi, buildPythonPackage }:

buildPythonPackage rec {
pname = "wakeonlan";
version = "1.0.0";
name = "${pname}-${version}";

This comment has been minimized.

Copy link
@dotlambda

dotlambda Feb 26, 2018

Member

@peterhoeg name should be left out for buildPython*

This comment has been minimized.

Copy link
@peterhoeg

peterhoeg Feb 27, 2018

Author Member

Are you sure? There is about 640 python modules with name being set.

This comment has been minimized.

Copy link
@dotlambda

dotlambda Feb 27, 2018

Member

Yes, it should be left for new ones and removed when updating a package. This makes overriding the version much easier.

This comment has been minimized.

Copy link
@peterhoeg

peterhoeg Feb 27, 2018

Author Member

OK, I'll clean up the ones I introduced. Are you doing an upgrade to HA 0.64.0? If not I have it here although I haven't tested it properly.

This comment has been minimized.

Copy link
@dotlambda

dotlambda Feb 27, 2018

Member

I also have a commit here updating HA, but since pytest-mock is still broken, it doesn't make sense to update until 1977a2d is in master.
For testing, I just run nix build -f nixos/release.nix tests.home-assistant.x86_64-linux.


src = fetchPypi {
inherit pname version;
sha256 = "1snkyc6ph0bnypqs5yjw35mx3f9ij4808r5i06gl2vhn1rfzgyh1";
};

meta = with stdenv.lib; {
description = "A small python module for wake on lan";
homepage = https://github.com/remcohaszing/pywakeonlan;
license = licenses.wtfpl;
maintainers = with maintainers; [ peterhoeg ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -2787,6 +2787,7 @@ in {
};
};

wakeonlan = callPackage ../development/python-modules/wakeonlan { };

openant = buildPythonPackage rec {
name = "openant-unstable-2017-02-11";
Expand Down

0 comments on commit 88b7830

Please sign in to comment.