From 8e4ef58acbadbeba439ad6030502d27f1724fd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Mancilla?= Date: Fri, 19 Nov 2021 17:04:40 -0300 Subject: [PATCH] python3Packages.m3u8: use pytestCheckHook --- pkgs/development/python-modules/m3u8/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/m3u8/default.nix b/pkgs/development/python-modules/m3u8/default.nix index 552a095e705f..0c3fb3562a01 100644 --- a/pkgs/development/python-modules/m3u8/default.nix +++ b/pkgs/development/python-modules/m3u8/default.nix @@ -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";