2022-12-29 14:08:56 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, celery
|
|
|
|
, django
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "django-celery-results";
|
2022-12-29 14:08:56 +00:00
|
|
|
version = "2.4.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-08-04 22:07:22 +00:00
|
|
|
pname = "django_celery_results";
|
|
|
|
inherit version;
|
2022-12-29 14:08:56 +00:00
|
|
|
hash = "sha256-dapRlw21aRy/JCxqD/UMjN9BniZc0Om3cjNdBkNsS5k=";
|
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Drop malformatted tests_require specification
|
|
|
|
sed -i '/tests_require=/d' setup.py
|
|
|
|
'';
|
|
|
|
|
2022-12-29 14:08:56 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|