My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/wakeonlan/default.nix

44 lines
804 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "wakeonlan";
version = "2.1.0";
disabled = pythonOlder "3.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "remcohaszing";
repo = "pywakeonlan";
rev = version;
sha256 = "sha256-5ri4bXc0EMNntzmcUZYpRIfaXoex4s5M6psf/9ta17Y=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"test_wakeonlan.py"
];
pythonImportsCheck = [
"wakeonlan"
];
meta = with lib; {
description = "Python module for wake on lan";
homepage = "https://github.com/remcohaszing/pywakeonlan";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}