pythonPackages.praw: 6.0.0 -> 6.3.1
This commit is contained in:
parent
febf826839
commit
9ed3fccb30
|
@ -1,47 +1,53 @@
|
||||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||||
, requests, decorator, flake8, mock, six, update_checker, pytestrunner, prawcore
|
, betamax
|
||||||
, pytest_3, betamax, betamax-serializers, betamax-matchers, requests_toolbelt
|
, betamax-serializers
|
||||||
|
, betamax-matchers
|
||||||
|
, mock
|
||||||
|
, six
|
||||||
|
, pytestrunner
|
||||||
|
, prawcore
|
||||||
|
, pytest
|
||||||
|
, requests-toolbelt
|
||||||
|
, update_checker
|
||||||
|
, websocket_client
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "praw";
|
pname = "praw";
|
||||||
version = "6.0.0";
|
version = "6.3.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "praw-dev";
|
owner = "praw-dev";
|
||||||
repo = "praw";
|
repo = "praw";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0y6nyz8vf98gl1qfmnznv3dbvlbzdl6mz99vk673nyfn3hbs451i";
|
sha256 = "0by89aw7m803dvjcc33m9390msjm6v5v8g3k8ink9gfm421lw8ky";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
nativeBuildInputs = [
|
||||||
# drop upper bound of prawcore requirement
|
pytestrunner
|
||||||
sed -ri "s/'(prawcore >=.+), <.+'/'\1'/" setup.py
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
|
||||||
decorator
|
|
||||||
flake8
|
|
||||||
mock
|
mock
|
||||||
six
|
|
||||||
update_checker
|
|
||||||
pytestrunner
|
|
||||||
prawcore
|
prawcore
|
||||||
|
update_checker
|
||||||
|
websocket_client
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest_3
|
|
||||||
betamax
|
betamax
|
||||||
betamax-serializers
|
betamax-serializers
|
||||||
betamax-matchers
|
betamax-matchers
|
||||||
requests_toolbelt
|
mock
|
||||||
|
pytest
|
||||||
|
requests-toolbelt
|
||||||
|
six
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Python Reddit API wrapper";
|
description = "Python Reddit API wrapper";
|
||||||
homepage = https://praw.readthedocs.org/;
|
homepage = "https://praw.readthedocs.org/";
|
||||||
license = licenses.gpl3;
|
license = licenses.bsd2;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue