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