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