2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oncalendar";
|
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cuu508";
|
|
|
|
repo = "oncalendar";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-MPKzC2QYA3tWxg19URKheAbPaiS0jXP96xR0Hyl58V0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oncalendar" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Systemd OnCalendar expression parser and evaluator";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/cuu508/oncalendar";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ phaer ];
|
|
|
|
};
|
|
|
|
}
|