python3Packages.praw: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-02-04 00:14:11 +01:00
parent b53f4f3a66
commit 101973ed0f

View file

@ -1,12 +1,12 @@
{ lib, buildPythonPackage, fetchFromGitHub
{ lib
, buildPythonPackage
, fetchFromGitHub
, betamax
, betamax-serializers
, betamax-matchers
, mock
, six
, pytestrunner
, prawcore
, pytest
, pytestCheckHook
, requests-toolbelt
, update_checker
, websocket_client
@ -18,15 +18,11 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "praw-dev";
repo = "praw";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aEx0swjfyBrSu1fgIiAwdwWmk9v5o7sbT5HTVp7L3R4=";
};
nativeBuildInputs = [
pytestrunner
];
propagatedBuildInputs = [
mock
prawcore
@ -38,16 +34,16 @@ buildPythonPackage rec {
betamax
betamax-serializers
betamax-matchers
mock
pytest
pytestCheckHook
requests-toolbelt
six
];
pythonImportsCheck = [ "praw" ];
meta = with lib; {
description = "Python Reddit API wrapper";
homepage = "https://praw.readthedocs.org/";
license = licenses.bsd2;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ fab ];
};
}