summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycron/default.nix
blob: 7155ee95723eaf96a2b0c79423ed7646b2e55404 (plain) (blame)
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, udatetime, pytz, pendulum, nose
, delorean, coveralls, arrow
}:

buildPythonPackage rec {
  pname = "pycron";
  version = "3.0.0";

  src = fetchFromGitHub {
    owner = "kipe";
    repo = pname;
    rev = version;
    sha256 = "12hkqrdfg3jbqkmck8i00ssyaw1c4hhvdhjxkmh2gm9pd99z5bpv";
  };

  checkInputs = [ arrow coveralls delorean nose pendulum pytz udatetime ];

  checkPhase = ''
    nosetests
  '';

  pythonImportsCheck = [ "pycron" ];

  meta = with lib; {
    description = "Simple cron-like parser for Python, which determines if current datetime matches conditions";
    license = licenses.mit;
    homepage = "https://github.com/kipe/pycron";
    maintainers = with maintainers; [ globin ];
  };
}