python3Packages.m3u8: use pytestCheckHook

This commit is contained in:
Sebastián Mancilla 2021-11-19 17:04:40 -03:00 committed by Jonathan Ringer
parent a80d35d02a
commit 8e4ef58acb

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, requests, iso8601, bottle, pytest, pytest-cov }:
{ lib, buildPythonPackage, fetchFromGitHub, requests, iso8601, bottle, pytestCheckHook }:
buildPythonPackage rec {
pname = "m3u8";
@ -11,14 +11,16 @@ buildPythonPackage rec {
sha256 = "0cmg993icpsa1b19kljxvjwhs167bsqrs0ad4wnwsi8qq6na5d4p";
};
checkInputs = [ bottle pytest pytest-cov ];
checkPhase = ''
pytest tests/test_{parser,model,variant_m3u8}.py
'';
checkInputs = [ bottle pytestCheckHook ];
propagatedBuildInputs = [ requests iso8601 ];
pytestFlagsArray = [
"tests/test_parser.py"
"tests/test_model.py"
"tests/test_variant_m3u8.py"
];
meta = with lib; {
homepage = "https://github.com/globocom/m3u8";
description = "Python m3u8 parser";