anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pytube / default.nix
blobeabf55c89caa9bf6af4777ece73f388f838cf8b5
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   pytestCheckHook,
7 }:
9 buildPythonPackage rec {
10   pname = "pytube";
11   version = "15.0.0";
13   disabled = pythonOlder "3.7";
15   format = "setuptools";
17   src = fetchFromGitHub {
18     owner = "pytube";
19     repo = "pytube";
20     rev = "v${version}";
21     hash = "sha256-Nvs/YlOjk/P5nd1kpUnCM2n6yiEaqZP830UQI0Ug1rk=";
22   };
24   nativeCheckInputs = [ pytestCheckHook ];
26   disabledTests = [ "test_streaming" ];
28   disabledTestPaths = [
29     "tests/test_extract.py"
30     "tests/test_query.py"
31     "tests/test_streams.py"
32     "tests/test_main.py"
33   ];
35   pythonImportsCheck = [ "pytube" ];
37   meta = with lib; {
38     description = "Python 3 library for downloading YouTube Videos";
39     mainProgram = "pytube";
40     homepage = "https://github.com/nficano/pytube";
41     license = licenses.mit;
42     maintainers = with maintainers; [ dotlambda ];
43   };