1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
41 lines
844 B
Nix
41 lines
844 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
celery,
|
|
django,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-celery-results";
|
|
version = "2.6.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "django_celery_results";
|
|
inherit version;
|
|
hash = "sha256-mrzYNq5rYQY3eSRNiIeoj+gLv6uhQ98208sHA0ZxJ3w=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Celery result back end with django";
|
|
homepage = "https://github.com/celery/django-celery-results";
|
|
changelog = "https://github.com/celery/django-celery-results/blob/v${version}/Changelog";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|