Files
nixpkgs/pkgs/development/python-modules/django-celery-results/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
892 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
celery,
django,
pythonOlder,
}:
buildPythonPackage rec {
pname = "django-celery-results";
version = "2.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
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 = [ ];
};
}