pythonPackages.m3u8: init at 0.5.2

This commit is contained in:
Scriptkiddi 2019-11-25 09:18:52 +01:00 committed by Jon
parent 0726ab30f6
commit cef835d40e
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ lib, buildPythonPackage, python, fetchFromGitHub, requests, iso8601, bottle, pytest, pytestcov }:
buildPythonPackage rec {
pname = "m3u8";
version = "0.5.2";
src = fetchFromGitHub {
owner = "globocom";
repo = pname;
rev = version;
sha256 = "0p6wmwv1nfa5pyakq5d55w9v142z5ja3db3s3qr44kx895d9lhng";
};
checkInputs = [ bottle pytest pytestcov ];
checkPhase = ''
pytest tests/test_{parser,model,variant_m3u8}.py
'';
propagatedBuildInputs = [ requests iso8601 ];
meta = with lib; {
homepage = "https://github.com/globocom/m3u8";
description = "Python m3u8 parser";
license = licenses.mit;
maintainers = with maintainers; [ Scriptkiddi ];
};
}

View File

@ -3994,6 +3994,8 @@ in {
python_magic = callPackage ../development/python-modules/python-magic { };
m3u8 = callPackage ../development/python-modules/m3u8 { };
magic = callPackage ../development/python-modules/magic { };
m2crypto = callPackage ../development/python-modules/m2crypto { };