about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytube
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-03-27 12:26:35 +0100
committerRobert Schütz <dev@schuetz-co.de>2021-03-28 16:53:23 +0200
commitf8d6e28f7d0ea2660ff19f9e9d39514a77346a97 (patch)
treeb4815fd732d4bd542c729140472d2d5da7bdd166 /pkgs/development/python-modules/pytube
parent5ebacbf4740c4d0e790ccd8974076b88a5d0123a (diff)
python3Packages.pytube: init at 10.6.1
Diffstat (limited to 'pkgs/development/python-modules/pytube')
-rw-r--r--pkgs/development/python-modules/pytube/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytube/default.nix b/pkgs/development/python-modules/pytube/default.nix
new file mode 100644
index 0000000000000..f47e6af16c0a7
--- /dev/null
+++ b/pkgs/development/python-modules/pytube/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, typing-extensions
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "pytube";
+  version = "10.6.1";
+
+  disabled = pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "pytube";
+    repo = "pytube";
+    rev = "v${version}";
+    sha256 = "sha256-b0tN4m3/+K243zQ7L4wW4crk9r69Tj64is6C4I5oFZU=";
+  };
+
+  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 ];
+  };
+}