Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / m3u8 / default.nix
blob01ff1458c0faa93f67e960b063d9d3e983d4f1a3
1 { lib, buildPythonPackage, python, fetchFromGitHub, requests, iso8601, bottle, pytest, pytestcov }:
3 buildPythonPackage rec {
4   pname = "m3u8";
5   version = "0.6.0";
7   src = fetchFromGitHub {
8     owner = "globocom";
9     repo = pname;
10     rev = version;
11     sha256 = "0cmg993icpsa1b19kljxvjwhs167bsqrs0ad4wnwsi8qq6na5d4p";
12   };
14   checkInputs = [ bottle pytest pytestcov ];
16   checkPhase = ''
17     pytest tests/test_{parser,model,variant_m3u8}.py
18   '';
20   propagatedBuildInputs = [ requests iso8601 ];
22   meta = with lib; {
23     homepage = "https://github.com/globocom/m3u8";
24     description = "Python m3u8 parser";
25     license = licenses.mit;
26     maintainers = with maintainers; [ Scriptkiddi ];
27   };