about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcatern <catern@catern.com>2019-02-23 07:32:18 -0500
committerRobert Schütz <rschuetz17@gmail.com>2019-02-23 13:32:18 +0100
commitbb602e28b9b2f9868823cfc87ecfc4751de56b54 (patch)
tree851ef433fbca874878430b045f7275104d1a1b1f
parenta4c7ce46d7fd3d995423154b8ae26abddf8e95e0 (diff)
downloadnixlib-bb602e28b9b2f9868823cfc87ecfc4751de56b54.tar
nixlib-bb602e28b9b2f9868823cfc87ecfc4751de56b54.tar.gz
nixlib-bb602e28b9b2f9868823cfc87ecfc4751de56b54.tar.bz2
nixlib-bb602e28b9b2f9868823cfc87ecfc4751de56b54.tar.lz
nixlib-bb602e28b9b2f9868823cfc87ecfc4751de56b54.tar.xz
nixlib-bb602e28b9b2f9868823cfc87ecfc4751de56b54.tar.zst
nixlib-bb602e28b9b2f9868823cfc87ecfc4751de56b54.zip
pythonPackages.contextvars: relax constraint on immutables version (#55660)
The build was broken before since we have immutables 0.9
-rw-r--r--pkgs/development/python-modules/contextvars/default.nix2
-rw-r--r--pkgs/development/python-modules/contextvars/immutables_version.patch11
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/contextvars/default.nix b/pkgs/development/python-modules/contextvars/default.nix
index 12914617b8f5..27ee2fc82f9e 100644
--- a/pkgs/development/python-modules/contextvars/default.nix
+++ b/pkgs/development/python-modules/contextvars/default.nix
@@ -10,6 +10,8 @@ buildPythonPackage rec {
     sha256 = "09fnni8cyxm070bfv9ay030qbyk0dfds5nq77s0p38h33hp08h93";
   };
 
+  # pull request for this patch is https://github.com/MagicStack/contextvars/pull/9
+  patches = [ ./immutables_version.patch ];
   propagatedBuildInputs = [ immutables ];
 
   meta = {
diff --git a/pkgs/development/python-modules/contextvars/immutables_version.patch b/pkgs/development/python-modules/contextvars/immutables_version.patch
new file mode 100644
index 000000000000..733c0502a665
--- /dev/null
+++ b/pkgs/development/python-modules/contextvars/immutables_version.patch
@@ -0,0 +1,11 @@
+--- ./setup.py	2018-07-30 15:40:14.000000000 +0000
++++ ./setup.py	2019-02-12 18:33:24.984430303 +0000
+@@ -17,7 +17,7 @@
+     packages=['contextvars'],
+     provides=['contextvars'],
+     install_requires=[
+-        'immutables==0.6',
++        'immutables>=0.6',
+     ],
+     license='Apache License, Version 2.0',
+     classifiers=[