2021-02-03 23:14:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2019-07-04 03:50:30 +01:00
|
|
|
, betamax
|
|
|
|
, betamax-serializers
|
|
|
|
, betamax-matchers
|
|
|
|
, mock
|
|
|
|
, prawcore
|
2021-02-03 23:14:11 +00:00
|
|
|
, pytestCheckHook
|
2019-07-04 03:50:30 +01:00
|
|
|
, requests-toolbelt
|
|
|
|
, update_checker
|
|
|
|
, websocket_client
|
2017-11-07 12:53:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "praw";
|
2021-02-26 08:14:09 +00:00
|
|
|
version = "7.2.0";
|
2017-11-07 12:53:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praw-dev";
|
2021-02-03 23:14:11 +00:00
|
|
|
repo = pname;
|
2017-11-07 12:53:19 +00:00
|
|
|
rev = "v${version}";
|
2021-02-26 08:14:09 +00:00
|
|
|
sha256 = "sha256-/GV5ZhrJxeChcYwmH/9FsLceAYRSeTCDe4lMEwdTa8Y=";
|
2017-11-07 12:53:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mock
|
|
|
|
prawcore
|
2019-07-04 03:50:30 +01:00
|
|
|
update_checker
|
|
|
|
websocket_client
|
2017-11-07 12:53:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
betamax
|
|
|
|
betamax-serializers
|
|
|
|
betamax-matchers
|
2021-02-03 23:14:11 +00:00
|
|
|
pytestCheckHook
|
2019-07-04 03:50:30 +01:00
|
|
|
requests-toolbelt
|
2017-11-07 12:53:19 +00:00
|
|
|
];
|
|
|
|
|
2021-02-03 23:14:11 +00:00
|
|
|
pythonImportsCheck = [ "praw" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-11-07 12:53:19 +00:00
|
|
|
description = "Python Reddit API wrapper";
|
2019-07-04 03:50:30 +01:00
|
|
|
homepage = "https://praw.readthedocs.org/";
|
|
|
|
license = licenses.bsd2;
|
2021-02-03 23:14:11 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-11-07 12:53:19 +00:00
|
|
|
};
|
|
|
|
}
|