fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
897 B
Nix
44 lines
897 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|