about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-07-04 08:32:41 -0700
committerJonathan Ringer <jonringer117@gmail.com>2020-07-04 08:32:46 -0700
commit01f1f3d5d021c33ccef79dcd990f792c3c69f1c0 (patch)
treef91be3f03ea6092bd61687857cabab23eada265e
parentf0c7019005d2227532c8813c250b5f2450c080a4 (diff)
python2Packages.prawcore: disable on python2
no longer compatible with python2's urllib

```
  prawcore/exceptions.py:2: in <module>
      from urllib.parse import urlparse
  E   ImportError: No module named parse
  builder for '/nix/store/3l1rqygq58hbwyzn6fqx8x4djbmzgggh-python2.7-prawcore-1.4.0.drv' failed with exit code
```
-rw-r--r--pkgs/development/python-modules/prawcore/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/prawcore/default.nix b/pkgs/development/python-modules/prawcore/default.nix
index aebe5766e9ce8..39e3bb239c6a5 100644
--- a/pkgs/development/python-modules/prawcore/default.nix
+++ b/pkgs/development/python-modules/prawcore/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPythonPackage, fetchPypi
+{ stdenv, buildPythonPackage, fetchPypi, isPy27
 , requests
 , testfixtures, mock, requests_toolbelt
 , betamax, betamax-serializers, betamax-matchers, pytest
@@ -7,6 +7,7 @@
 buildPythonPackage rec {
   pname = "prawcore";
   version = "1.4.0";
+  disabled = isPy27; # see https://github.com/praw-dev/prawcore/pull/101
 
   src = fetchPypi {
     inherit pname version;