1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, setuptools 6, pytestCheckHook 7, pytest-django 8, mock 9, nose 10}: 11 12buildPythonPackage rec { 13 pname = "django-crontab"; 14 version = "0.7.1"; 15 format = "pyproject"; 16 17 src = fetchFromGitHub { 18 owner = "kraiz"; 19 repo = "django-crontab"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-qX+N3SMUyhMWoWluRCeOPGYKCMBnjg61P281HXHkfJk="; 22 }; 23 24 propagatedBuildInputs = [ 25 django 26 setuptools 27 ]; 28 29 nativeCheckInputs = [ 30 django 31 mock 32 nose 33 pytestCheckHook 34 pytest-django 35 ]; 36 37 # Tests currently fail with: RuntimeError: setup_test_environment() was 38 # already called and can't be called again without first calling 39 # teardown_test_environment() 40 doCheck = false; 41 42 DJANGO_SETTINGS_MODULE = "tests.settings"; 43 44 pythonImportsCheck = [ "django_crontab" ]; 45 46 meta = with lib; { 47 description = "Simple crontab powered job scheduling for Django"; 48 homepage = "https://github.com/kraiz/django-crontab"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ onny ]; 51 }; 52}