depot/third_party/nixpkgs/pkgs/development/python-modules/pycron/default.nix
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

30 lines
753 B
Nix

{ 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 ];
};
}