summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-07-20 01:49:48 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-07-21 22:35:27 +0200
commit4a29c24ae5932c5cca118d6f43abe3a1d178dadd (patch)
treec69d743a4e5a5e612b8ab0f50ccad3d79ced201e
parente30aabe996bc59e168ea51d9e6d97c13ec05cbe4 (diff)
downloadnixpkgs-4a29c24ae5932c5cca118d6f43abe3a1d178dadd.tar
nixpkgs-4a29c24ae5932c5cca118d6f43abe3a1d178dadd.tar.gz
nixpkgs-4a29c24ae5932c5cca118d6f43abe3a1d178dadd.tar.bz2
nixpkgs-4a29c24ae5932c5cca118d6f43abe3a1d178dadd.tar.lz
nixpkgs-4a29c24ae5932c5cca118d6f43abe3a1d178dadd.tar.xz
nixpkgs-4a29c24ae5932c5cca118d6f43abe3a1d178dadd.tar.zst
nixpkgs-4a29c24ae5932c5cca118d6f43abe3a1d178dadd.zip
python3Packages.celery: patch billiard>=4.0 compat
-rw-r--r--pkgs/development/python-modules/celery/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/celery/default.nix b/pkgs/development/python-modules/celery/default.nix
index 1a04fce11dc..67c3c58794d 100644
--- a/pkgs/development/python-modules/celery/default.nix
+++ b/pkgs/development/python-modules/celery/default.nix
@@ -10,6 +10,7 @@
 , click-repl
 , dnspython
 , fetchPypi
+, fetchpatch
 , kombu
 , moto
 , pymongo
@@ -35,6 +36,19 @@ buildPythonPackage rec {
     hash = "sha256-+vvYKTTTD4oAT4Ho96Bi4xQToj1ES+juMyZVORWVjG0=";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "billiard-4.0-comat.patch";
+      url = "https://github.com/celery/celery/commit/b260860988469ef8ad74f2d4225839c2fa91d590.patch";
+      hash = "sha256-NWB/UB0fE7A/vgMRYz6QGmqLmyN1ninAMyL4V2tpzto=";
+    })
+  ];
+
+  postPatch = ''
+    substituteInPlace requirements/default.txt \
+      --replace "billiard>=3.6.4.0,<4.0" "billiard>=3.6.4.0"
+  '';
+
   propagatedBuildInputs = [
     billiard
     click