1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "cronsim"; 10 version = "2.5"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "cuu508"; 17 repo = "cronsim"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-TSVFkMCMmrMXaPJPPNjIML+z98i1iIYuKH7hHiZnJkg="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "cronsim" 28 ]; 29 30 meta = with lib; { 31 description = "Cron expression parser and evaluator"; 32 homepage = "https://github.com/cuu508/cronsim"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ phaer ]; 35 }; 36}