3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/croniter/default.nix

42 lines
716 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
, pytest
, pytz
2020-06-08 20:04:54 +01:00
, natsort
, tzlocal
}:
buildPythonPackage rec {
pname = "croniter";
2020-07-31 09:56:37 +01:00
version = "0.3.34";
src = fetchPypi {
inherit pname version;
2020-07-31 09:56:37 +01:00
sha256 = "7186b9b464f45cf3d3c83a18bc2344cc101d7b9fd35a05f2878437b14967e964";
};
propagatedBuildInputs = [
python-dateutil
2020-06-08 20:04:54 +01:00
natsort
];
checkInputs = [
pytest
pytz
2020-06-08 20:04:54 +01:00
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 ];
};
}