depot/third_party/nixpkgs/pkgs/development/python-modules/pytube/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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 ];
};
}