7c611f6ae1
The `tests_require` value violates setuptools' expectations. error in django_celery_results setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after name and no valid version specifier)
40 lines
795 B
Nix
40 lines
795 B
Nix
{ 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 ];
|
|
};
|
|
}
|