mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python3Packages.m3u8: use pytestCheckHook
This commit is contained in:
parent
a80d35d02a
commit
8e4ef58acb
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user