1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 python-dateutil, 8 pytz, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "crontab"; 14 version = "0.23.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "josiahcarlson"; 21 repo = "parse-crontab"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-8vMkgBU1jIluo9+hAvk2KNM+Wn0+PvJqFNwX+JLXD+w="; 24 }; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 python-dateutil 31 pytz 32 ]; 33 34 pythonImportsCheck = [ "crontab" ]; 35 36 meta = with lib; { 37 description = "Parse and use crontab schedules in Python"; 38 homepage = "https://github.com/josiahcarlson/parse-crontab"; 39 license = licenses.lgpl21Only; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}