python3Packages.brotli: convert to pytestCheckHook

This commit is contained in:
Martin Weinelt 2021-08-27 02:03:19 +02:00
parent 2522f92483
commit 56024b4bbe

View File

@ -1,4 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook }:
buildPythonPackage rec {
pname = "brotli";
@ -16,15 +19,18 @@ buildPythonPackage rec {
dontConfigure = true;
checkInputs = [ pytest ];
checkInputs = [
pytestCheckHook
];
checkPhase = ''
pytest python/tests
'';
pytestFlagsArray = [
"python/tests"
];
meta = {
meta = with lib; {
homepage = "https://github.com/google/brotli";
description = "Generic-purpose lossless compression algorithm";
license = lib.licenses.mit;
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}