2018-04-06 14:06:16 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, setuptools_scm, pytest, mock }:
|
2018-02-26 16:41:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wakeonlan";
|
2018-04-04 19:18:49 +01:00
|
|
|
version = "1.1.6";
|
2018-02-26 16:41:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 19:18:49 +01:00
|
|
|
sha256 = "5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9";
|
2018-02-26 16:41:29 +00:00
|
|
|
};
|
|
|
|
|
2018-04-06 14:06:16 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "setuptools-scm ~= 1.15.7" "setuptools-scm"
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-02-26 16:41:29 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A small python module for wake on lan";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/remcohaszing/pywakeonlan";
|
2018-02-26 16:41:29 +00:00
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|