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