summary refs log tree commit diff
path: root/pkgs/development/python-modules/m3u8/default.nix
blob: 01ff1458c0faa93f67e960b063d9d3e983d4f1a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildPythonPackage, python, fetchFromGitHub, requests, iso8601, bottle, pytest, pytestcov }:

buildPythonPackage rec {
  pname = "m3u8";
  version = "0.6.0";

  src = fetchFromGitHub {
    owner = "globocom";
    repo = pname;
    rev = version;
    sha256 = "0cmg993icpsa1b19kljxvjwhs167bsqrs0ad4wnwsi8qq6na5d4p";
  };

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