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
```
This commit is contained in:
Jonathan Ringer 2020-07-04 08:32:41 -07:00
parent f0c7019005
commit 01f1f3d5d0
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -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;