ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pytube / default.nix
blobc9ee34c05c69c39c552697b0330f87d56b18ed8c
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "pytube";
10   version = "12.1.0";
12   disabled = pythonOlder "3.6";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "pytube";
18     repo = "pytube";
19     rev = "v${version}";
20     hash = "sha256-o4kfZLkEs+XYor2sS2lfuDZkPfHrB+rDoxroc4f55gc=";
21   };
23   checkInputs = [
24     pytestCheckHook
25   ];
27   disabledTestPaths = [
28     "tests/test_extract.py"
29     "tests/test_query.py"
30     "tests/test_streams.py"
31     "tests/test_main.py"
32   ];
34   pythonImportsCheck = [ "pytube" ];
36   meta = with lib; {
37     description = "Python 3 library for downloading YouTube Videos";
38     homepage = "https://github.com/nficano/pytube";
39     license = licenses.mit;
40     maintainers = with maintainers; [ dotlambda ];
41   };