2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
2017-11-07 12:50:11 +00:00
|
|
|
, requests
|
|
|
|
, testfixtures, mock, requests_toolbelt
|
2019-10-27 01:20:34 +01:00
|
|
|
, betamax, betamax-serializers, betamax-matchers, pytest
|
2017-11-07 12:50:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prawcore";
|
2020-08-17 11:41:09 +01:00
|
|
|
version = "1.5.0";
|
2020-07-04 16:32:41 +01:00
|
|
|
disabled = isPy27; # see https://github.com/praw-dev/prawcore/pull/101
|
2017-11-07 12:50:11 +00:00
|
|
|
|
2019-02-09 09:32:00 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-17 11:41:09 +01:00
|
|
|
sha256 = "1f1eafc8a65d671f9892354f73142014fbb5d3a9ee621568c662d0a354e0578b";
|
2017-11-07 12:50:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
testfixtures
|
|
|
|
mock
|
|
|
|
betamax
|
|
|
|
betamax-serializers
|
|
|
|
betamax-matchers
|
|
|
|
requests_toolbelt
|
2019-10-27 01:20:34 +01:00
|
|
|
pytest
|
2017-11-07 12:50:11 +00:00
|
|
|
];
|
|
|
|
|
2019-10-27 01:20:34 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-11-07 12:50:11 +00:00
|
|
|
description = "Low-level communication layer for PRAW";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://praw.readthedocs.org/";
|
2017-11-07 12:50:11 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-11-07 12:50:11 +00:00
|
|
|
};
|
|
|
|
}
|