1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 iso8601,
6 bottle,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "m3u8";
14 version = "6.0.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "globocom";
21 repo = "m3u8";
22 tag = version;
23 hash = "sha256-1SOuKKNBg67Yc0a6Iqb1goTE7sraptzpFIB2lvrbMQg=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [ iso8601 ];
29
30 nativeCheckInputs = [
31 bottle
32 pytestCheckHook
33 ];
34
35 disabledTests = [
36 # Tests require network access
37 "test_load_should_create_object_from_uri"
38 "test_load_should_create_object_from_uri_with_relative_segments"
39 "test_load_should_remember_redirect"
40 "test_raise_timeout_exception_if_timeout_happens_when_loading_from_uri"
41 ];
42
43 pythonImportsCheck = [ "m3u8" ];
44
45 meta = with lib; {
46 description = "Python m3u8 parser";
47 homepage = "https://github.com/globocom/m3u8";
48 changelog = "https://github.com/globocom/m3u8/releases/tag/${version}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ Scriptkiddi ];
51 };
52}