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