ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / m3u8 / default.nix
blobe69bf61657fae6eaf9265dd0dab0cc5b9d4b732d
1 { lib, buildPythonPackage, fetchFromGitHub, fetchpatch, requests, iso8601, bottle, pytestCheckHook }:
3 buildPythonPackage rec {
4   pname = "m3u8";
5   version = "0.9.0";
7   src = fetchFromGitHub {
8     owner = "globocom";
9     repo = pname;
10     rev = version;
11     sha256 = "sha256-EfHhmV2otEgEy2OVohS+DF7dk97GFdWZ4cFCERZBmlA=";
12   };
14   patches = [
15     # Fix hardcoded /tmp dir (fix build on Hydra)
16     (fetchpatch {
17       url = "https://github.com/globocom/m3u8/commit/cf7ae5fda4681efcea796cd7c51c02f152c36009.patch";
18       sha256 = "sha256-SEETpIJQddid8D//6DVrSGs/BqDeMOzufE0bBrm+/xY=";
19     })
20   ];
22   propagatedBuildInputs = [ requests iso8601 ];
24   checkInputs = [ bottle pytestCheckHook ];
26   pytestFlagsArray = [
27     "tests/test_parser.py"
28     "tests/test_model.py"
29     "tests/test_variant_m3u8.py"
30   ];
32   meta = with lib; {
33     homepage = "https://github.com/globocom/m3u8";
34     description = "Python m3u8 parser";
35     license = licenses.mit;
36     maintainers = with maintainers; [ Scriptkiddi ];
37   };