Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pycron / default.nix
blob7aa8afee108802ba2e35b33939d02bd5f7e2f1f2
1 { lib, buildPythonPackage, fetchFromGitHub, udatetime, pytz, pendulum, nose
2 , delorean, coveralls, arrow
3 }:
5 buildPythonPackage rec {
6   pname = "pycron";
7   version = "3.0.0";
9   src = fetchFromGitHub {
10     owner = "kipe";
11     repo = pname;
12     rev = version;
13     sha256 = "12hkqrdfg3jbqkmck8i00ssyaw1c4hhvdhjxkmh2gm9pd99z5bpv";
14   };
16   nativeCheckInputs = [ arrow coveralls delorean nose pendulum pytz udatetime ];
18   checkPhase = ''
19     nosetests
20   '';
22   pythonImportsCheck = [ "pycron" ];
24   meta = with lib; {
25     description = "Simple cron-like parser for Python, which determines if current datetime matches conditions";
26     license = licenses.mit;
27     homepage = "https://github.com/kipe/pycron";
28     maintainers = with maintainers; [ globin ];
29   };