nixpkgs/pkgs/development/python-modules/wakeonlan/default.nix

41 lines
800 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
}:
2018-02-26 16:41:29 +00:00
buildPythonPackage rec {
pname = "wakeonlan";
version = "2.0.1";
disabled = pythonOlder "3.6";
format = "pyproject";
2018-02-26 16:41:29 +00:00
src = fetchFromGitHub {
owner = "remcohaszing";
repo = "pywakeonlan";
rev = version;
sha256 = "sha256-WgoL8ntfEaHcvVbJjdewe0wE31Lq7WBj8Bppeq1uJx8=";
2018-02-26 16:41:29 +00:00
};
nativeBuildInputs = [
poetry-core
];
2018-04-06 14:06:16 +01:00
checkInputs = [
pytestCheckHook
];
2018-04-06 14:06:16 +01:00
pytestFlagsArray = [ "test_wakeonlan.py" ];
pythonImportsCheck = [ "wakeonlan" ];
2018-04-06 14:06:16 +01:00
meta = with lib; {
2018-02-26 16:41:29 +00:00
description = "A small python module for wake on lan";
homepage = "https://github.com/remcohaszing/pywakeonlan";
license = licenses.mit;
2018-02-26 16:41:29 +00:00
maintainers = with maintainers; [ peterhoeg ];
};
}