1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, iso8601
5, bottle
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "m3u8";
11 version = "3.5.0";
12
13 src = fetchFromGitHub {
14 owner = "globocom";
15 repo = pname;
16 rev = "refs/tags/${version}";
17 hash = "sha256-9Xmbc1aL7SI24FFn0/5KJtAM3+Xyvd3bwUh8DU1wGKE=";
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}