From 01f1f3d5d021c33ccef79dcd990f792c3c69f1c0 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sat, 4 Jul 2020 08:32:41 -0700 Subject: [PATCH] python2Packages.prawcore: disable on python2 no longer compatible with python2's urllib ``` prawcore/exceptions.py:2: in 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 ``` --- pkgs/development/python-modules/prawcore/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/prawcore/default.nix b/pkgs/development/python-modules/prawcore/default.nix index aebe5766e9ce..39e3bb239c6a 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;