Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 39 lines 1.0 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, 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 patches = [ 15 # Fix hardcoded /tmp dir (fix build on Hydra) 16 (fetchpatch { 17 url = "https://github.com/globocom/m3u8/commit/cf7ae5fda4681efcea796cd7c51c02f152c36009.patch"; 18 sha256 = "sha256-SEETpIJQddid8D//6DVrSGs/BqDeMOzufE0bBrm+/xY="; 19 }) 20 ]; 21 22 propagatedBuildInputs = [ requests iso8601 ]; 23 24 checkInputs = [ bottle pytestCheckHook ]; 25 26 pytestFlagsArray = [ 27 "tests/test_parser.py" 28 "tests/test_model.py" 29 "tests/test_variant_m3u8.py" 30 ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/globocom/m3u8"; 34 description = "Python m3u8 parser"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ Scriptkiddi ]; 37 }; 38} 39