2021-04-07 22:08:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2018-02-26 16:41:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wakeonlan";
|
2021-10-19 16:33:00 +00:00
|
|
|
version = "2.1.0";
|
2021-04-07 22:08:54 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "pyproject";
|
2018-02-26 16:41:29 +00:00
|
|
|
|
2021-04-07 22:08:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "remcohaszing";
|
|
|
|
repo = "pywakeonlan";
|
|
|
|
rev = version;
|
2021-10-19 16:33:00 +00:00
|
|
|
sha256 = "sha256-5ri4bXc0EMNntzmcUZYpRIfaXoex4s5M6psf/9ta17Y=";
|
2018-02-26 16:41:29 +00:00
|
|
|
};
|
|
|
|
|
2021-04-07 22:08:54 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2018-04-06 13:06:16 +00:00
|
|
|
|
2021-04-07 22:08:54 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-04-06 13:06:16 +00:00
|
|
|
|
2021-10-19 16:33:00 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"test_wakeonlan.py"
|
|
|
|
];
|
2021-04-07 22:08:54 +00:00
|
|
|
|
2021-10-19 16:33:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"wakeonlan"
|
|
|
|
];
|
2018-04-06 13:06:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-10-19 16:33:00 +00:00
|
|
|
description = "Python module for wake on lan";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/remcohaszing/pywakeonlan";
|
2021-04-09 00:54:03 +00:00
|
|
|
license = licenses.mit;
|
2018-02-26 16:41:29 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|