depot/third_party/nixpkgs/pkgs/development/python-modules/pytube/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

47 lines
902 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 ];
};
}