1{ lib
2, fetchPypi
3, buildPythonPackage
4, celery
5, django
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "django_celery_results";
11 version = "2.4.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-dapRlw21aRy/JCxqD/UMjN9BniZc0Om3cjNdBkNsS5k=";
19 };
20
21 postPatch = ''
22 # Drop malformatted tests_require specification
23 sed -i '/tests_require=/d' setup.py
24 '';
25
26 propagatedBuildInputs = [
27 celery
28 django
29 ];
30
31 # Tests need access to a database.
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Celery result back end with django";
36 homepage = "https://github.com/celery/django-celery-results";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ babariviere ];
39 };
40}