2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytube";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "15.0.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytube";
|
|
|
|
repo = "pytube";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-Nvs/YlOjk/P5nd1kpUnCM2n6yiEaqZP830UQI0Ug1rk=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTests = [ "test_streaming" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_extract.py"
|
|
|
|
"tests/test_query.py"
|
|
|
|
"tests/test_streams.py"
|
|
|
|
"tests/test_main.py"
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
pythonImportsCheck = [ "pytube" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python 3 library for downloading YouTube Videos";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pytube";
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/nficano/pytube";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|