2021-06-18 21:54:50 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2017-11-07 12:50:11 +00:00
|
|
|
, requests
|
2021-06-18 21:54:50 +01:00
|
|
|
, testfixtures
|
|
|
|
, mock
|
2021-07-20 22:21:18 +01:00
|
|
|
, requests-toolbelt
|
2021-06-18 21:54:50 +01:00
|
|
|
, betamax
|
|
|
|
, betamax-serializers
|
|
|
|
, betamax-matchers
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2017-11-07 12:50:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "prawcore";
|
2021-07-27 09:46:59 +01:00
|
|
|
version = "2.3.0";
|
2021-06-18 21:54:50 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-11-07 12:50:11 +00:00
|
|
|
|
2019-02-09 09:32:00 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-27 09:46:59 +01:00
|
|
|
sha256 = "0vgmhjddqxnz5vy70dyqvakak51fg1nk6j3xavkc83d8nzacrwfs";
|
2017-11-07 12:50:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
testfixtures
|
|
|
|
mock
|
|
|
|
betamax
|
|
|
|
betamax-serializers
|
|
|
|
betamax-matchers
|
2021-07-20 22:21:18 +01:00
|
|
|
requests-toolbelt
|
2021-06-18 21:54:50 +01:00
|
|
|
pytestCheckHook
|
2017-11-07 12:50:11 +00:00
|
|
|
];
|
|
|
|
|
2021-06-18 21:54:50 +01:00
|
|
|
pythonImportsCheck = [ "prawcore" ];
|
2019-10-27 01:20:34 +01:00
|
|
|
|
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/";
|
2021-06-18 21:54:50 +01:00
|
|
|
license = licenses.bsd2;
|
2017-11-07 12:50:11 +00:00
|
|
|
platforms = platforms.all;
|
2021-06-18 21:54:50 +01:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-11-07 12:50:11 +00:00
|
|
|
};
|
|
|
|
}
|