depot/third_party/nixpkgs/pkgs/development/python-modules/m3u8/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

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