5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, iso8601
|
|
, bottle
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "m3u8";
|
|
version = "3.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "globocom";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-JLYRkibcvmNct2eIBfBP7z3gR680xhZL/Kn/1S7feoo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
iso8601
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
bottle
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require network access
|
|
"test_load_should_create_object_from_uri"
|
|
"test_load_should_create_object_from_uri_with_relative_segments"
|
|
"test_load_should_remember_redirect"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"m3u8"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python m3u8 parser";
|
|
homepage = "https://github.com/globocom/m3u8";
|
|
changelog = "https://github.com/globocom/m3u8/releases/tag//${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|