nixpkgs/pkgs/development/python-modules/pytube/default.nix

34 lines
661 B
Nix
Raw Normal View History

2021-03-27 12:26:35 +01:00
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytube";
version = "11.0.1";
2021-03-27 12:26:35 +01:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pytube";
repo = "pytube";
rev = "v${version}";
sha256 = "04s4hganb6x0dlfyyg9gjah5z0vxd7bxzqwgvd28hqnf0iwc2byb";
2021-03-27 12:26:35 +01:00
};
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 ];
};
}