depot/third_party/nixpkgs/pkgs/development/python-modules/croniter/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

41 lines
716 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
, pytest
, pytz
, natsort
, tzlocal
}:
buildPythonPackage rec {
pname = "croniter";
version = "0.3.34";
src = fetchPypi {
inherit pname version;
sha256 = "7186b9b464f45cf3d3c83a18bc2344cc101d7b9fd35a05f2878437b14967e964";
};
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 ];
};
}