1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "oncalendar";
10 version = "1.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "cuu508";
15 repo = "oncalendar";
16 tag = "v${version}";
17 hash = "sha256-MPKzC2QYA3tWxg19URKheAbPaiS0jXP96xR0Hyl58V0=";
18 };
19
20 nativeBuildInputs = [ pytestCheckHook ];
21
22 pythonImportsCheck = [ "oncalendar" ];
23
24 meta = with lib; {
25 description = "Systemd OnCalendar expression parser and evaluator";
26 homepage = "https://github.com/cuu508/oncalendar";
27 license = licenses.bsd3;
28 maintainers = with maintainers; [ phaer ];
29 };
30}