2019-07-18 13:17:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python-dateutil
|
2021-03-24 08:41:47 +00:00
|
|
|
, pytestCheckHook
|
2019-07-18 13:17:06 +00:00
|
|
|
, pytz
|
2020-06-08 19:04:54 +00:00
|
|
|
, tzlocal
|
2019-07-18 13:17:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "croniter";
|
2022-01-15 08:58:45 +00:00
|
|
|
version = "1.2.0";
|
|
|
|
format = "setuptools";
|
2019-07-18 13:17:06 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-15 08:58:45 +00:00
|
|
|
hash = "sha256-CUQi9q657WRnFDk1A/o4iv5PhG4RDhmX/qV5TiCFwtc=";
|
2019-07-18 13:17:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-03-24 08:41:47 +00:00
|
|
|
pytestCheckHook
|
2019-07-18 13:17:06 +00:00
|
|
|
pytz
|
2020-06-08 19:04:54 +00:00
|
|
|
tzlocal
|
2019-07-18 13:17:06 +00:00
|
|
|
];
|
|
|
|
|
2022-01-15 08:58:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"croniter"
|
|
|
|
];
|
2021-05-17 07:25:43 +00:00
|
|
|
|
2019-07-18 13:17:06 +00:00
|
|
|
meta = with lib; {
|
2022-01-15 08:58:45 +00:00
|
|
|
description = "Library to iterate over datetime object with cron like format";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/kiorky/croniter";
|
2019-07-18 13:17:06 +00:00
|
|
|
license = licenses.mit;
|
2022-01-15 08:58:45 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-07-18 13:17:06 +00:00
|
|
|
};
|
|
|
|
}
|