nixpkgs/pkgs/development/python-modules/m3u8/default.nix
2023-05-26 00:33:48 +00:00

47 lines
891 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, iso8601
, bottle
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "m3u8";
version = "3.5.0";
src = fetchFromGitHub {
owner = "globocom";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-9Xmbc1aL7SI24FFn0/5KJtAM3+Xyvd3bwUh8DU1wGKE=";
};
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; {
homepage = "https://github.com/globocom/m3u8";
description = "Python m3u8 parser";
license = licenses.mit;
maintainers = with maintainers; [ Scriptkiddi ];
};
}