Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 46 lines 876 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, iso8601 5, bottle 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "m3u8"; 11 version = "3.4.0"; 12 13 src = fetchFromGitHub { 14 owner = "globocom"; 15 repo = pname; 16 rev = version; 17 hash = "sha256-jfCmvAb7bF6nYFNUPXVG61x0RiO4vcyR+x7WzgPRLxI="; 18 }; 19 20 propagatedBuildInputs = [ 21 iso8601 22 ]; 23 24 nativeCheckInputs = [ 25 bottle 26 pytestCheckHook 27 ]; 28 29 disabledTests = [ 30 # Tests require network access 31 "test_load_should_create_object_from_uri" 32 "test_load_should_create_object_from_uri_with_relative_segments" 33 "test_load_should_remember_redirect" 34 ]; 35 36 pythonImportsCheck = [ 37 "m3u8" 38 ]; 39 40 meta = with lib; { 41 homepage = "https://github.com/globocom/m3u8"; 42 description = "Python m3u8 parser"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ Scriptkiddi ]; 45 }; 46}