Merge pull request #127411 from fabaff/bump-praw

This commit is contained in:
Sandro 2021-06-20 18:24:23 +02:00 committed by GitHub
commit 539833838e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 14 deletions

View File

@ -14,13 +14,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "praw"; pname = "praw";
version = "7.2.0"; version = "7.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "praw-dev"; owner = "praw-dev";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-/GV5ZhrJxeChcYwmH/9FsLceAYRSeTCDe4lMEwdTa8Y="; sha256 = "0pj987v04y5askczlma2ilwllwfsg7p5mwhv0h1lcl1lg0fbsvn9";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,17 +1,25 @@
{ lib, buildPythonPackage, fetchPypi, isPy27 { lib
, buildPythonPackage
, fetchPypi
, requests , requests
, testfixtures, mock, requests_toolbelt , testfixtures
, betamax, betamax-serializers, betamax-matchers, pytest , mock
, requests_toolbelt
, betamax
, betamax-serializers
, betamax-matchers
, pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "prawcore"; pname = "prawcore";
version = "2.0.0"; version = "2.2.0";
disabled = isPy27; # see https://github.com/praw-dev/prawcore/pull/101 disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-tJjZtvVJkQBecn1SNcj0nqW6DJpteT+3Q7QPoInNNtE="; sha256 = "08wiij1r3flpnqzdx8bf536yf7lqyhg9461aybhcykcw8nnjzr5x";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -25,18 +33,16 @@ buildPythonPackage rec {
betamax-serializers betamax-serializers
betamax-matchers betamax-matchers
requests_toolbelt requests_toolbelt
pytest pytestCheckHook
]; ];
checkPhase = '' pythonImportsCheck = [ "prawcore" ];
pytest
'';
meta = with lib; { meta = with lib; {
description = "Low-level communication layer for PRAW"; description = "Low-level communication layer for PRAW";
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; [ fab ];
}; };
} }