depot/third_party/nixpkgs/pkgs/development/python-modules/m3u8/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

46 lines
876 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, iso8601
, bottle
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "m3u8";
version = "3.4.0";
src = fetchFromGitHub {
owner = "globocom";
repo = pname;
rev = version;
hash = "sha256-jfCmvAb7bF6nYFNUPXVG61x0RiO4vcyR+x7WzgPRLxI=";
};
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 ];
};
}