2017-11-07 13:53:19 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
2019-07-04 04:50:30 +02:00
|
|
|
, betamax
|
|
|
|
, betamax-serializers
|
|
|
|
, betamax-matchers
|
|
|
|
, mock
|
|
|
|
, six
|
|
|
|
, pytestrunner
|
|
|
|
, prawcore
|
|
|
|
, pytest
|
|
|
|
, requests-toolbelt
|
|
|
|
, update_checker
|
|
|
|
, websocket_client
|
2017-11-07 13:53:19 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "praw";
|
2020-01-22 23:36:42 +01:00
|
|
|
version = "6.5.1";
|
2017-11-07 13:53:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praw-dev";
|
|
|
|
repo = "praw";
|
|
|
|
rev = "v${version}";
|
2020-01-22 23:36:42 +01:00
|
|
|
sha256 = "0d5whaw4731gllffhwrh2qqnlki4j8q83xaf3v4spkd40ps3q7b4";
|
2017-11-07 13:53:19 +01:00
|
|
|
};
|
|
|
|
|
2019-07-04 04:50:30 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pytestrunner
|
|
|
|
];
|
2018-04-17 16:03:29 +02:00
|
|
|
|
2017-11-07 13:53:19 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mock
|
|
|
|
prawcore
|
2019-07-04 04:50:30 +02:00
|
|
|
update_checker
|
|
|
|
websocket_client
|
2017-11-07 13:53:19 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
betamax
|
|
|
|
betamax-serializers
|
|
|
|
betamax-matchers
|
2019-07-04 04:50:30 +02:00
|
|
|
mock
|
|
|
|
pytest
|
|
|
|
requests-toolbelt
|
|
|
|
six
|
2017-11-07 13:53:19 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python Reddit API wrapper";
|
2019-07-04 04:50:30 +02:00
|
|
|
homepage = "https://praw.readthedocs.org/";
|
|
|
|
license = licenses.bsd2;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-11-07 13:53:19 +01:00
|
|
|
};
|
|
|
|
}
|