blob: 2e173e5f482b2d6e553dc464b50cc5feb5cc6fcc (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytube";
version = "15.0.0";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "pytube";
repo = "pytube";
rev = "v${version}";
hash = "sha256-Nvs/YlOjk/P5nd1kpUnCM2n6yiEaqZP830UQI0Ug1rk=";
};
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
"test_streaming"
];
disabledTestPaths = [
"tests/test_extract.py"
"tests/test_query.py"
"tests/test_streams.py"
"tests/test_main.py"
];
pythonImportsCheck = [ "pytube" ];
meta = with lib; {
description = "Python 3 library for downloading YouTube Videos";
mainProgram = "pytube";
homepage = "https://github.com/nficano/pytube";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|