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