Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 702 B view raw
1{ lib, buildPythonPackage, python, fetchFromGitHub, requests, iso8601, bottle, pytest, pytestcov }: 2 3buildPythonPackage rec { 4 pname = "m3u8"; 5 version = "0.6.0"; 6 7 src = fetchFromGitHub { 8 owner = "globocom"; 9 repo = pname; 10 rev = version; 11 sha256 = "0cmg993icpsa1b19kljxvjwhs167bsqrs0ad4wnwsi8qq6na5d4p"; 12 }; 13 14 checkInputs = [ bottle pytest pytestcov ]; 15 16 checkPhase = '' 17 pytest tests/test_{parser,model,variant_m3u8}.py 18 ''; 19 20 propagatedBuildInputs = [ requests iso8601 ]; 21 22 meta = with lib; { 23 homepage = "https://github.com/globocom/m3u8"; 24 description = "Python m3u8 parser"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ Scriptkiddi ]; 27 }; 28} 29