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