Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 823 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "wakeonlan"; 11 version = "3.0.0"; 12 disabled = pythonOlder "3.6"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "remcohaszing"; 17 repo = "pywakeonlan"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-7BDE7TmTT8rSaG0rEn5QwH+izGWA2PeQzxpGiv7+3fo="; 20 }; 21 22 nativeBuildInputs = [ 23 poetry-core 24 ]; 25 26 nativeCheckInputs = [ 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}