1{ lib, buildPythonPackage, fetchFromGitHub, udatetime, pytz, pendulum, nose 2, delorean, coveralls, arrow 3}: 4 5buildPythonPackage rec { 6 pname = "pycron"; 7 version = "3.0.0"; 8 9 src = fetchFromGitHub { 10 owner = "kipe"; 11 repo = pname; 12 rev = version; 13 sha256 = "12hkqrdfg3jbqkmck8i00ssyaw1c4hhvdhjxkmh2gm9pd99z5bpv"; 14 }; 15 16 checkInputs = [ arrow coveralls delorean nose pendulum pytz udatetime ]; 17 18 checkPhase = '' 19 nosetests 20 ''; 21 22 pythonImportsCheck = [ "pycron" ]; 23 24 meta = with lib; { 25 description = "Simple cron-like parser for Python, which determines if current datetime matches conditions"; 26 license = licenses.mit; 27 homepage = "https://github.com/kipe/pycron"; 28 maintainers = with maintainers; [ globin ]; 29 }; 30}