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