summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cronsim/default.nix
blob: 73d3f9aec7e93c60bd58ec8cb41b9db01a7e77b0 (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
31
32
33
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "cronsim";
  version = "2.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "cuu508";
    repo = "cronsim";
    tag = version;
    hash = "sha256-9TextQcZAX5Ri6cc+Qd4T+u8XjxriqoTsy/9/G8XDAM=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cronsim" ];

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