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