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