summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/oncalendar/default.nix
blob: c1e9f65590da00ec87bd336607f464fb74dede7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "oncalendar";
  version = "1.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "cuu508";
    repo = "oncalendar";
    tag = "v${version}";
    hash = "sha256-MPKzC2QYA3tWxg19URKheAbPaiS0jXP96xR0Hyl58V0=";
  };

  nativeBuildInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "oncalendar" ];

  meta = {
    description = "Systemd OnCalendar expression parser and evaluator";
    homepage = "https://github.com/cuu508/oncalendar";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ phaer ];
  };
}