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