python3.pkgs.pycron: init at 3.0.0

This commit is contained in:
Robin Gloster 2021-05-09 10:49:43 -05:00
parent 2d9b40453e
commit 741c201f6b
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,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 ];
};
}

View file

@ -5451,6 +5451,8 @@ in {
pycrc = callPackage ../development/python-modules/pycrc { };
pycron = callPackage ../development/python-modules/pycron { };
pycrypto = callPackage ../development/python-modules/pycrypto { };
pycryptodome = callPackage ../development/python-modules/pycryptodome { };