2017-11-07 12:53:19 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, requests, decorator, flake8, mock, six, update_checker, pytestrunner, prawcore
|
2019-02-14 16:08:09 +00:00
|
|
|
, pytest_3, betamax, betamax-serializers, betamax-matchers, requests_toolbelt
|
2017-11-07 12:53:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "praw";
|
2018-10-27 13:47:50 +01:00
|
|
|
version = "6.0.0";
|
2017-11-07 12:53:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praw-dev";
|
|
|
|
repo = "praw";
|
|
|
|
rev = "v${version}";
|
2018-10-27 13:47:50 +01:00
|
|
|
sha256 = "0y6nyz8vf98gl1qfmnznv3dbvlbzdl6mz99vk673nyfn3hbs451i";
|
2017-11-07 12:53:19 +00:00
|
|
|
};
|
|
|
|
|
2018-04-17 15:03:29 +01:00
|
|
|
postPatch = ''
|
|
|
|
# drop upper bound of prawcore requirement
|
|
|
|
sed -ri "s/'(prawcore >=.+), <.+'/'\1'/" setup.py
|
|
|
|
'';
|
|
|
|
|
2017-11-07 12:53:19 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
decorator
|
|
|
|
flake8
|
|
|
|
mock
|
|
|
|
six
|
|
|
|
update_checker
|
|
|
|
pytestrunner
|
|
|
|
prawcore
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-02-14 16:08:09 +00:00
|
|
|
pytest_3
|
2017-11-07 12:53:19 +00:00
|
|
|
betamax
|
|
|
|
betamax-serializers
|
|
|
|
betamax-matchers
|
|
|
|
requests_toolbelt
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python Reddit API wrapper";
|
|
|
|
homepage = http://praw.readthedocs.org/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-11-07 12:53:19 +00:00
|
|
|
};
|
|
|
|
}
|