From ea250dfce428f0c60f07ff18b31841567a9a3ee3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Jun 2021 22:54:50 +0200 Subject: [PATCH 1/2] python3Packages.prawcore: 2.0.0 -> 2.2.0 --- .../python-modules/prawcore/default.nix | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/prawcore/default.nix b/pkgs/development/python-modules/prawcore/default.nix index 1e38f401a43d..129275b2987f 100644 --- a/pkgs/development/python-modules/prawcore/default.nix +++ b/pkgs/development/python-modules/prawcore/default.nix @@ -1,17 +1,25 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 +{ lib +, buildPythonPackage +, fetchPypi , requests -, testfixtures, mock, requests_toolbelt -, betamax, betamax-serializers, betamax-matchers, pytest +, testfixtures +, mock +, requests_toolbelt +, betamax +, betamax-serializers +, betamax-matchers +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "prawcore"; - version = "2.0.0"; - disabled = isPy27; # see https://github.com/praw-dev/prawcore/pull/101 + version = "2.2.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-tJjZtvVJkQBecn1SNcj0nqW6DJpteT+3Q7QPoInNNtE="; + sha256 = "08wiij1r3flpnqzdx8bf536yf7lqyhg9461aybhcykcw8nnjzr5x"; }; propagatedBuildInputs = [ @@ -25,18 +33,16 @@ buildPythonPackage rec { betamax-serializers betamax-matchers requests_toolbelt - pytest + pytestCheckHook ]; - checkPhase = '' - pytest - ''; + pythonImportsCheck = [ "prawcore" ]; meta = with lib; { description = "Low-level communication layer for PRAW"; homepage = "https://praw.readthedocs.org/"; - license = licenses.gpl3; + license = licenses.bsd2; platforms = platforms.all; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ fab ]; }; } From 6d40092511a8b0838a5503d30294289ee00ee1e1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Jun 2021 22:56:25 +0200 Subject: [PATCH 2/2] python3Packages.praw: 7.2.0 -> 7.3.0 --- pkgs/development/python-modules/praw/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/praw/default.nix b/pkgs/development/python-modules/praw/default.nix index 5ae4d0b280f5..e104dbff4f62 100644 --- a/pkgs/development/python-modules/praw/default.nix +++ b/pkgs/development/python-modules/praw/default.nix @@ -14,13 +14,13 @@ buildPythonPackage rec { pname = "praw"; - version = "7.2.0"; + version = "7.3.0"; src = fetchFromGitHub { owner = "praw-dev"; repo = pname; rev = "v${version}"; - sha256 = "sha256-/GV5ZhrJxeChcYwmH/9FsLceAYRSeTCDe4lMEwdTa8Y="; + sha256 = "0pj987v04y5askczlma2ilwllwfsg7p5mwhv0h1lcl1lg0fbsvn9"; }; propagatedBuildInputs = [