5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
46 lines
874 B
Nix
46 lines
874 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";
|
|
homepage = "https://github.com/nficano/pytube";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|