1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "wakeonlan"; 12 version = "3.1.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "remcohaszing"; 19 repo = "pywakeonlan"; 20 tag = version; 21 hash = "sha256-VPdklyD3GVn0cex4I6zV61I0bUr4KQp8DdMKAM/r4io="; 22 }; 23 24 nativeBuildInputs = [ poetry-core ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 enabledTestPaths = [ "test_wakeonlan.py" ]; 29 30 pythonImportsCheck = [ "wakeonlan" ]; 31 32 meta = with lib; { 33 description = "Python module for wake on lan"; 34 mainProgram = "wakeonlan"; 35 homepage = "https://github.com/remcohaszing/pywakeonlan"; 36 changelog = "https://github.com/remcohaszing/pywakeonlan/releases/tag/${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ peterhoeg ]; 39 }; 40}