Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytube / default.nix
blob2e173e5f482b2d6e553dc464b50cc5feb5cc6fcc
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "pytube";
10   version = "15.0.0";
12   disabled = pythonOlder "3.7";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "pytube";
18     repo = "pytube";
19     rev = "v${version}";
20     hash = "sha256-Nvs/YlOjk/P5nd1kpUnCM2n6yiEaqZP830UQI0Ug1rk=";
21   };
23   nativeCheckInputs = [
24     pytestCheckHook
25   ];
27   disabledTests = [
28     "test_streaming"
29   ];
31   disabledTestPaths = [
32     "tests/test_extract.py"
33     "tests/test_query.py"
34     "tests/test_streams.py"
35     "tests/test_main.py"
36   ];
38   pythonImportsCheck = [ "pytube" ];
40   meta = with lib; {
41     description = "Python 3 library for downloading YouTube Videos";
42     mainProgram = "pytube";
43     homepage = "https://github.com/nficano/pytube";
44     license = licenses.mit;
45     maintainers = with maintainers; [ dotlambda ];
46   };