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