summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/crontab/default.nix
blob: 8887c456072d508d5782192765631b829a04fc90 (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
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  pytestCheckHook,
  python-dateutil,
  pytz,
  setuptools,
}:

buildPythonPackage rec {
  pname = "crontab";
  version = "3.3.0";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "doctormo";
    repo = "python-crontab";
    tag = "v${version}";
    hash = "sha256-eJXtvTRwokbewWrTArHJ2FXGDLvlkGA/5ZZR01koMW8=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [
    pytestCheckHook
    python-dateutil
    pytz
  ];

  pythonImportsCheck = [ "crontab" ];

  meta = {
    description = "Parse and use crontab schedules in Python";
    homepage = "https://gitlab.com/doctormo/python-crontab/";
    license = lib.licenses.lgpl21Only;
    maintainers = with lib.maintainers; [ fab ];
  };
}