nixpkgs/pkgs/development/python-modules/m3u8/default.nix
Fabian Affolter 53058d1d8e
python310Packages.m3u8: add format
- disable on unsupported Python releases
2023-09-23 12:37:26 +02:00

52 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 ];
};
}