about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/django-celery-results/default.nix
blob: 2b2fe06de614edf358f6fa436c400a970f464f59 (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
{ lib
, fetchPypi
, buildPythonPackage
, celery
, django
, pythonOlder
}:

buildPythonPackage rec {
  pname = "django_celery_results";
  version = "2.4.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-dapRlw21aRy/JCxqD/UMjN9BniZc0Om3cjNdBkNsS5k=";
  };

  postPatch = ''
    # Drop malformatted tests_require specification
    sed -i '/tests_require=/d' setup.py
  '';

  propagatedBuildInputs = [
    celery
    django
  ];

  # Tests need access to a database.
  doCheck = false;

  meta = with lib; {
    description = "Celery result back end with django";
    homepage = "https://github.com/celery/django-celery-results";
    license = licenses.bsd3;
    maintainers = with maintainers; [ babariviere ];
  };
}