2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytube";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "10.7.2";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytube";
|
|
|
|
repo = "pytube";
|
|
|
|
rev = "v${version}";
|
2021-04-22 02:08:21 +00:00
|
|
|
sha256 = "sha256-85pHzfQYyqwX8mQ5msIojM/0FSfeaC12KJw4mXmji3g=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|