37 lines
672 B
Nix
37 lines
672 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python-dateutil
|
|
, pytest
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "croniter";
|
|
version = "0.3.32";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0d5bf45f12861c1b718c51bd6e2ab056da94e651bf22900658421cdde0ff7088";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
python-dateutil
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
pytz
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|