tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.m3u8: 0.9.0 -> 3.4.0
Mario Rodas
2 years ago
c8fed841
c0c84d52
+23
-16
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
m3u8
default.nix
+23
-16
pkgs/development/python-modules/m3u8/default.nix
···
1
1
-
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, requests, iso8601, bottle, pytestCheckHook }:
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, iso8601
5
5
+
, bottle
6
6
+
, pytestCheckHook
7
7
+
}:
2
8
3
9
buildPythonPackage rec {
4
10
pname = "m3u8";
5
5
-
version = "0.9.0";
11
11
+
version = "3.4.0";
6
12
7
13
src = fetchFromGitHub {
8
14
owner = "globocom";
9
15
repo = pname;
10
16
rev = version;
11
11
-
hash = "sha256-EfHhmV2otEgEy2OVohS+DF7dk97GFdWZ4cFCERZBmlA=";
17
17
+
hash = "sha256-jfCmvAb7bF6nYFNUPXVG61x0RiO4vcyR+x7WzgPRLxI=";
12
18
};
13
19
14
14
-
patches = [
15
15
-
# Fix hardcoded /tmp dir (fix build on Hydra)
16
16
-
(fetchpatch {
17
17
-
url = "https://github.com/globocom/m3u8/commit/cf7ae5fda4681efcea796cd7c51c02f152c36009.patch";
18
18
-
hash = "sha256-SEETpIJQddid8D//6DVrSGs/BqDeMOzufE0bBrm+/xY=";
19
19
-
})
20
20
+
propagatedBuildInputs = [
21
21
+
iso8601
20
22
];
21
23
22
22
-
propagatedBuildInputs = [ requests iso8601 ];
24
24
+
nativeCheckInputs = [
25
25
+
bottle
26
26
+
pytestCheckHook
27
27
+
];
23
28
24
24
-
nativeCheckInputs = [ bottle pytestCheckHook ];
29
29
+
disabledTests = [
30
30
+
# Tests require network access
31
31
+
"test_load_should_create_object_from_uri"
32
32
+
"test_load_should_create_object_from_uri_with_relative_segments"
33
33
+
"test_load_should_remember_redirect"
34
34
+
];
25
35
26
26
-
pytestFlagsArray = [
27
27
-
"tests/test_parser.py"
28
28
-
"tests/test_model.py"
29
29
-
"tests/test_variant_m3u8.py"
36
36
+
pythonImportsCheck = [
37
37
+
"m3u8"
30
38
];
31
39
32
40
meta = with lib; {
···
36
44
maintainers = with maintainers; [ Scriptkiddi ];
37
45
};
38
46
}
39
39
-