mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / m3u8 / default.nix
blobb4a28dce28098a06777344487b955f1126cc1ff4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   iso8601,
6   bottle,
7   pytestCheckHook,
8   pythonOlder,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "m3u8";
14   version = "6.0.0";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "globocom";
21     repo = "m3u8";
22     rev = "refs/tags/${version}";
23     hash = "sha256-1SOuKKNBg67Yc0a6Iqb1goTE7sraptzpFIB2lvrbMQg=";
24   };
26   build-system = [ setuptools ];
28   dependencies = [ iso8601 ];
30   nativeCheckInputs = [
31     bottle
32     pytestCheckHook
33   ];
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   ];
43   pythonImportsCheck = [ "m3u8" ];
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   };