2021-02-03 23:14:11 +00:00
|
|
|
{ lib
|
2019-07-04 02:50:30 +00:00
|
|
|
, betamax
|
|
|
|
, betamax-matchers
|
2021-11-14 10:53:57 +00:00
|
|
|
, betamax-serializers
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2019-07-04 02:50:30 +00:00
|
|
|
, mock
|
|
|
|
, prawcore
|
2021-02-03 23:14:11 +00:00
|
|
|
, pytestCheckHook
|
2021-11-14 10:53:57 +00:00
|
|
|
, pythonOlder
|
2019-07-04 02:50:30 +00:00
|
|
|
, requests-toolbelt
|
|
|
|
, update_checker
|
2021-06-15 11:12:45 +00:00
|
|
|
, websocket-client
|
2017-11-07 12:53:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "praw";
|
2023-07-12 17:44:32 +00:00
|
|
|
version = "7.7.1";
|
2021-11-14 10:53:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-05-11 11:36:48 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-11-07 12:53:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praw-dev";
|
2021-02-03 23:14:11 +00:00
|
|
|
repo = pname;
|
2023-02-25 21:28:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-12 17:44:32 +00:00
|
|
|
hash = "sha256-L7wTHD/ypXVc8GMfl9u16VNb9caLJoXpaMEIzaVVUgo=";
|
2017-11-07 12:53:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mock
|
|
|
|
prawcore
|
2019-07-04 02:50:30 +00:00
|
|
|
update_checker
|
2021-06-15 11:12:45 +00:00
|
|
|
websocket-client
|
2017-11-07 12:53:19 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2017-11-07 12:53:19 +00:00
|
|
|
betamax
|
|
|
|
betamax-serializers
|
|
|
|
betamax-matchers
|
2021-02-03 23:14:11 +00:00
|
|
|
pytestCheckHook
|
2019-07-04 02:50:30 +00:00
|
|
|
requests-toolbelt
|
2017-11-07 12:53:19 +00:00
|
|
|
];
|
|
|
|
|
2021-11-14 10:53:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"praw"
|
|
|
|
];
|
2021-02-03 23:14:11 +00:00
|
|
|
|
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 02:50:30 +00:00
|
|
|
homepage = "https://praw.readthedocs.org/";
|
2023-02-25 21:28:31 +00:00
|
|
|
changelog = "https://github.com/praw-dev/praw/blob/v${version}/CHANGES.rst";
|
2019-07-04 02:50:30 +00:00
|
|
|
license = licenses.bsd2;
|
2021-02-03 23:14:11 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-11-07 12:53:19 +00:00
|
|
|
};
|
|
|
|
}
|