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
-
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, requests, iso8601, bottle, pytestCheckHook }:
0
0
0
0
0
0
2
3
buildPythonPackage rec {
4
pname = "m3u8";
5
-
version = "0.9.0";
6
7
src = fetchFromGitHub {
8
owner = "globocom";
9
repo = pname;
10
rev = version;
11
-
hash = "sha256-EfHhmV2otEgEy2OVohS+DF7dk97GFdWZ4cFCERZBmlA=";
12
};
13
14
-
patches = [
15
-
# Fix hardcoded /tmp dir (fix build on Hydra)
16
-
(fetchpatch {
17
-
url = "https://github.com/globocom/m3u8/commit/cf7ae5fda4681efcea796cd7c51c02f152c36009.patch";
18
-
hash = "sha256-SEETpIJQddid8D//6DVrSGs/BqDeMOzufE0bBrm+/xY=";
19
-
})
20
];
21
22
-
propagatedBuildInputs = [ requests iso8601 ];
0
0
0
23
24
-
nativeCheckInputs = [ bottle pytestCheckHook ];
0
0
0
0
0
25
26
-
pytestFlagsArray = [
27
-
"tests/test_parser.py"
28
-
"tests/test_model.py"
29
-
"tests/test_variant_m3u8.py"
30
];
31
32
meta = with lib; {
···
36
maintainers = with maintainers; [ Scriptkiddi ];
37
};
38
}
39
-
···
1
+
{ lib
2
+
, buildPythonPackage
3
+
, fetchFromGitHub
4
+
, iso8601
5
+
, bottle
6
+
, pytestCheckHook
7
+
}:
8
9
buildPythonPackage rec {
10
pname = "m3u8";
11
+
version = "3.4.0";
12
13
src = fetchFromGitHub {
14
owner = "globocom";
15
repo = pname;
16
rev = version;
17
+
hash = "sha256-jfCmvAb7bF6nYFNUPXVG61x0RiO4vcyR+x7WzgPRLxI=";
18
};
19
20
+
propagatedBuildInputs = [
21
+
iso8601
0
0
0
0
22
];
23
24
+
nativeCheckInputs = [
25
+
bottle
26
+
pytestCheckHook
27
+
];
28
29
+
disabledTests = [
30
+
# Tests require network access
31
+
"test_load_should_create_object_from_uri"
32
+
"test_load_should_create_object_from_uri_with_relative_segments"
33
+
"test_load_should_remember_redirect"
34
+
];
35
36
+
pythonImportsCheck = [
37
+
"m3u8"
0
0
38
];
39
40
meta = with lib; {
···
44
maintainers = with maintainers; [ Scriptkiddi ];
45
};
46
}
0