83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
44 lines
823 B
Nix
44 lines
823 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wakeonlan";
|
|
version = "3.0.0";
|
|
disabled = pythonOlder "3.6";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "remcohaszing";
|
|
repo = "pywakeonlan";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-7BDE7TmTT8rSaG0rEn5QwH+izGWA2PeQzxpGiv7+3fo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"test_wakeonlan.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"wakeonlan"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for wake on lan";
|
|
homepage = "https://github.com/remcohaszing/pywakeonlan";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
};
|
|
}
|