1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "wakeonlan"; 11 version = "2.1.0"; 12 disabled = pythonOlder "3.6"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "remcohaszing"; 17 repo = "pywakeonlan"; 18 rev = version; 19 sha256 = "sha256-5ri4bXc0EMNntzmcUZYpRIfaXoex4s5M6psf/9ta17Y="; 20 }; 21 22 nativeBuildInputs = [ 23 poetry-core 24 ]; 25 26 checkInputs = [ 27 pytestCheckHook 28 ]; 29 30 pytestFlagsArray = [ 31 "test_wakeonlan.py" 32 ]; 33 34 pythonImportsCheck = [ 35 "wakeonlan" 36 ]; 37 38 meta = with lib; { 39 description = "Python module for wake on lan"; 40 homepage = "https://github.com/remcohaszing/pywakeonlan"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ peterhoeg ]; 43 }; 44}