2019-07-18 15:17:06 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python-dateutil
|
|
|
|
, pytest
|
|
|
|
, pytz
|
2020-06-08 21:04:54 +02:00
|
|
|
, natsort
|
|
|
|
, tzlocal
|
2019-07-18 15:17:06 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "croniter";
|
2020-06-05 19:44:33 +02:00
|
|
|
version = "0.3.32";
|
2019-07-18 15:17:06 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 19:44:33 +02:00
|
|
|
sha256 = "0d5bf45f12861c1b718c51bd6e2ab056da94e651bf22900658421cdde0ff7088";
|
2019-07-18 15:17:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
2020-06-08 21:04:54 +02:00
|
|
|
natsort
|
2019-07-18 15:17:06 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytz
|
2020-06-08 21:04:54 +02:00
|
|
|
tzlocal
|
2019-07-18 15:17:06 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest src/croniter
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "croniter provides iteration for datetime object with cron like format";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/kiorky/croniter";
|
2019-07-18 15:17:06 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|