at 22.05-pre 857 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, requests, iso8601, bottle, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "m3u8"; 5 version = "0.9.0"; 6 7 src = fetchFromGitHub { 8 owner = "globocom"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-EfHhmV2otEgEy2OVohS+DF7dk97GFdWZ4cFCERZBmlA="; 12 }; 13 14 propagatedBuildInputs = [ requests iso8601 ]; 15 16 checkInputs = [ bottle pytestCheckHook ]; 17 18 pytestFlagsArray = [ 19 "tests/test_parser.py" 20 "tests/test_model.py" 21 "tests/test_variant_m3u8.py" 22 ]; 23 24 preCheck = '' 25 # Fix test on Hydra 26 substituteInPlace tests/test_model.py --replace "/tmp/d.m3u8" "$TMPDIR/d.m3u8" 27 ''; 28 29 meta = with lib; { 30 homepage = "https://github.com/globocom/m3u8"; 31 description = "Python m3u8 parser"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ Scriptkiddi ]; 34 }; 35} 36