Files
nixpkgs/pkgs/development/python-modules/m3u8/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
iso8601,
bottle,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "m3u8";
version = "6.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "globocom";
repo = "m3u8";
tag = version;
hash = "sha256-1SOuKKNBg67Yc0a6Iqb1goTE7sraptzpFIB2lvrbMQg=";
};
build-system = [ setuptools ];
dependencies = [ 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"
"test_raise_timeout_exception_if_timeout_happens_when_loading_from_uri"
];
pythonImportsCheck = [ "m3u8" ];
meta = {
description = "Python m3u8 parser";
homepage = "https://github.com/globocom/m3u8";
changelog = "https://github.com/globocom/m3u8/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Scriptkiddi ];
};
}