depot/third_party/nixpkgs/pkgs/development/python-modules/pytube/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

33 lines
658 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytube";
version = "11.0.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pytube";
repo = "pytube";
rev = "v${version}";
hash = "sha256-3HrkhlwV8OLqbzC6QgddLB1fQxWbwCQ6STCgUXlr5So=";
};
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 ];
};
}