42 lines
716 B
Nix
42 lines
716 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python-dateutil
|
|
, pytest
|
|
, pytz
|
|
, natsort
|
|
, tzlocal
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "croniter";
|
|
version = "0.3.35";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b9075573d9d18fdc4c67ad6741c4bfa4b446b1b1d7f03279757244c8a75abedf";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-dateutil
|
|
natsort
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
pytz
|
|
tzlocal
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest src/croniter
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "croniter provides iteration for datetime object with cron like format";
|
|
homepage = "https://github.com/kiorky/croniter";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|