Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / wakeonlan / default.nix
blobea4f215a129e0c8f6061f2c9dfd7d437daeb41d1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "wakeonlan";
11   version = "3.1.0";
12   pyproject = true;
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "remcohaszing";
18     repo = "pywakeonlan";
19     rev = "refs/tags/${version}";
20     hash = "sha256-VPdklyD3GVn0cex4I6zV61I0bUr4KQp8DdMKAM/r4io=";
21   };
23   nativeBuildInputs = [
24     poetry-core
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pytestFlagsArray = [
32     "test_wakeonlan.py"
33   ];
35   pythonImportsCheck = [
36     "wakeonlan"
37   ];
39   meta = with lib; {
40     description = "Python module for wake on lan";
41     mainProgram = "wakeonlan";
42     homepage = "https://github.com/remcohaszing/pywakeonlan";
43     changelog = "https://github.com/remcohaszing/pywakeonlan/releases/tag/${version}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ peterhoeg ];
46   };