nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "wakeonlan";
11 version = "2.0.1";
12 disabled = pythonOlder "3.6";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "remcohaszing";
17 repo = "pywakeonlan";
18 rev = version;
19 sha256 = "sha256-WgoL8ntfEaHcvVbJjdewe0wE31Lq7WBj8Bppeq1uJx8=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 checkInputs = [
27 pytestCheckHook
28 ];
29
30 pytestFlagsArray = [ "test_wakeonlan.py" ];
31
32 pythonImportsCheck = [ "wakeonlan" ];
33
34 meta = with lib; {
35 description = "A small python module for wake on lan";
36 homepage = "https://github.com/remcohaszing/pywakeonlan";
37 license = licenses.mit;
38 maintainers = with maintainers; [ peterhoeg ];
39 };
40}