2017-11-07 12:50:11 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, testfixtures, mock, requests_toolbelt
|
|
|
|
, betamax, betamax-serializers, betamax-matchers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prawcore";
|
2018-10-24 08:27:54 +01:00
|
|
|
version = "1.0.0";
|
2017-11-07 12:50:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praw-dev";
|
|
|
|
repo = "prawcore";
|
|
|
|
rev = "v${version}";
|
2018-10-24 08:27:54 +01:00
|
|
|
sha256 = "1j905wi5n2xgik3yk2hrv8dky318ahfjl5k1zs21mrl81jk0907f";
|
2017-11-07 12:50:11 +00:00
|
|
|
};
|
|
|
|
|
2018-04-07 11:41:04 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s/'testfixtures >4.13.2, <6'/'testfixtures >4.13.2'/g" setup.py
|
|
|
|
'';
|
|
|
|
|
2017-11-07 12:50:11 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
testfixtures
|
|
|
|
mock
|
|
|
|
betamax
|
|
|
|
betamax-serializers
|
|
|
|
betamax-matchers
|
|
|
|
requests_toolbelt
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Low-level communication layer for PRAW";
|
|
|
|
homepage = http://praw.readthedocs.org/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ jgeerds ];
|
|
|
|
};
|
|
|
|
}
|