nixpkgs/pkgs/development/python-modules/pytube/default.nix
2021-04-06 18:17:07 +02:00

34 lines
660 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytube";
version = "10.7.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pytube";
repo = "pytube";
rev = "v${version}";
sha256 = "sha256-a9MYEQFJXfPXYkWiuZkjt/PGs73Dm5614/Xvv6Nn8RA=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pytube" ];
meta = with lib; {
description = "Python 3 library for downloading YouTube Videos";
homepage = "https://github.com/nficano/pytube";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}