Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 37 lines 658 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python-dateutil 5, pytest 6, pytz 7}: 8 9buildPythonPackage rec { 10 pname = "croniter"; 11 version = "0.3.31"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "15riw8sl8jzzkvvjlz3i3p7jcx423zipxhff5ddvki6zgnrb9149"; 16 }; 17 18 propagatedBuildInputs = [ 19 python-dateutil 20 ]; 21 22 checkInputs = [ 23 pytest 24 pytz 25 ]; 26 27 checkPhase = '' 28 pytest src/croniter 29 ''; 30 31 meta = with lib; { 32 description = "croniter provides iteration for datetime object with cron like format"; 33 homepage = https://github.com/kiorky/croniter; 34 license = licenses.mit; 35 maintainers = [ maintainers.costrouc ]; 36 }; 37}