Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / crontab / default.nix
blobfea3e9909b7018f030da7f91c508ae069f27d154
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , python-dateutil
7 , pytz
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "crontab";
13   version = "0.23.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "josiahcarlson";
20     repo = "parse-crontab";
21     rev = "refs/tags/${version}";
22     hash = "sha256-8vMkgBU1jIluo9+hAvk2KNM+Wn0+PvJqFNwX+JLXD+w=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31     python-dateutil
32     pytz
33   ];
35   pythonImportsCheck = [
36     "crontab"
37   ];
39   meta = with lib; {
40     description = "Parse and use crontab schedules in Python";
41     homepage = "https://github.com/josiahcarlson/parse-crontab";
42     license = licenses.lgpl21Only;
43     maintainers = with maintainers; [ fab ];
44   };