From 7c611f6ae1d3a5e33fbef8a9cf410b1997feb85f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 2 Mar 2023 02:47:42 +0100 Subject: [PATCH] python310Packages.django-celery-results: Fix build 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) --- .../python-modules/django-celery-results/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/django-celery-results/default.nix b/pkgs/development/python-modules/django-celery-results/default.nix index 1cb4b0f3b81f..2b2fe06de614 100644 --- a/pkgs/development/python-modules/django-celery-results/default.nix +++ b/pkgs/development/python-modules/django-celery-results/default.nix @@ -18,6 +18,11 @@ buildPythonPackage rec { hash = "sha256-dapRlw21aRy/JCxqD/UMjN9BniZc0Om3cjNdBkNsS5k="; }; + postPatch = '' + # Drop malformatted tests_require specification + sed -i '/tests_require=/d' setup.py + ''; + propagatedBuildInputs = [ celery django