Merge pull request #127000 from j0hax/ytmdl
This commit is contained in:
commit
7f5807d5af
8 changed files with 189 additions and 0 deletions
27
pkgs/development/python-modules/downloader-cli/default.nix
Normal file
27
pkgs/development/python-modules/downloader-cli/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, urllib3, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "downloader-cli";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deepjyoti30";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0gbbjxb9vf5g890cls3mwzl8lmcn6jkpgm5cbrif740mn2b4q228";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ urllib3 ];
|
||||
|
||||
# Disable checks due to networking (Errno 101)
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "downloader_cli" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple downloader written in Python with an awesome customizable progressbar. ";
|
||||
homepage = "https://github.com/deepjyoti30/downloader-cli";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
}
|
27
pkgs/development/python-modules/itunespy/default.nix
Normal file
27
pkgs/development/python-modules/itunespy/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, requests, pycountry, mypy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "itunespy";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sleepyfran";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0yc3az5531qs8nbcw4rhgrszwczgy4bikfwfar7xb2044360sslw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests pycountry mypy ];
|
||||
|
||||
# This module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "itunespy" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple library to fetch data from the iTunes Store API";
|
||||
homepage = "https://github.com/sleepyfran/itunespy";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
}
|
24
pkgs/development/python-modules/pydes/default.nix
Normal file
24
pkgs/development/python-modules/pydes/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydes";
|
||||
version = "unstable-2019-01-08";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "twhiteman";
|
||||
repo = "pyDes";
|
||||
rev = "e988a5ffc9abb8010fc75dba54904d1c5dbe83db";
|
||||
sha256 = "0sic8wbyk5azb4d4m6zbc96lfqcw8s2pzcv9nric5yqc751613ww";
|
||||
};
|
||||
|
||||
checkPhase = "python test_pydes.py";
|
||||
|
||||
pythonImportsCheck = [ "pyDes" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pure python module which implements the DES and Triple-DES encryption algorithms";
|
||||
homepage = "https://github.com/twhiteman/pyDes";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
}
|
25
pkgs/development/python-modules/simber/default.nix
Normal file
25
pkgs/development/python-modules/simber/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, colorama, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "simber";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deepjyoti30";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0ksc2m61j5ijj0sq6kkc0hhkmfy9f51h9z3cl2sf8g6wbr9vc47h";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ colorama ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
pythonImportsCheck = [ "simber" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple, minimal and powerful logger for Python";
|
||||
homepage = "https://github.com/deepjyoti30/simber";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
}
|
26
pkgs/development/python-modules/youtube-search/default.nix
Normal file
26
pkgs/development/python-modules/youtube-search/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, requests }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "youtube-search";
|
||||
version = "unstable-2021-02-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joetats";
|
||||
repo = "youtube_search";
|
||||
rev = "886fe1b16c829215ee0984b6859f874b4a30d875";
|
||||
sha256 = "sha256-3ECJ6iHNzx5PLgpTFraFzAYbKnyMYRf/iJ0zajU+hlo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
# Check disabled due to relative import with no known parent package
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "youtube_search" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool for searching for youtube videos to avoid using their heavily rate-limited API";
|
||||
homepage = "https://github.com/joetats/youtube_search";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
}
|
48
pkgs/tools/misc/ytmdl/default.nix
Normal file
48
pkgs/tools/misc/ytmdl/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ lib, fetchFromGitHub, buildPythonApplication, ffmpeg, ffmpeg-python, musicbrainzngs, rich, simber, pydes, youtube-search, unidecode, pyxdg, downloader-cli, beautifulsoup4, itunespy, mutagen, pysocks, youtube-dl }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "ytmdl";
|
||||
version = "2021.05.26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deepjyoti30";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-AYBhPmv1/cOaMh44kqm7JpJSudHbfriiJztcGL5mbEk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "bs4" "beautifulsoup4"
|
||||
'';
|
||||
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ffmpeg
|
||||
ffmpeg-python
|
||||
musicbrainzngs
|
||||
rich
|
||||
simber
|
||||
pydes
|
||||
youtube-search
|
||||
unidecode
|
||||
pyxdg
|
||||
downloader-cli
|
||||
beautifulsoup4
|
||||
itunespy
|
||||
mutagen
|
||||
pysocks
|
||||
youtube-dl
|
||||
];
|
||||
|
||||
# This application has no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/deepjyoti30/ytmdl";
|
||||
description = "YouTube Music Downloader";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
}
|
|
@ -28023,6 +28023,8 @@ in
|
|||
|
||||
ytmdesktop = callPackage ../applications/audio/ytmdesktop { };
|
||||
|
||||
ytmdl = python3Packages.callPackage ../tools/misc/ytmdl { };
|
||||
|
||||
zam-plugins = callPackage ../applications/audio/zam-plugins { };
|
||||
|
||||
zanshin = libsForQt5.callPackage ../applications/office/zanshin { };
|
||||
|
|
|
@ -2160,6 +2160,8 @@ in {
|
|||
|
||||
dotmap = callPackage ../development/python-modules/dotmap { };
|
||||
|
||||
downloader-cli = callPackage ../development/python-modules/downloader-cli { };
|
||||
|
||||
dparse = callPackage ../development/python-modules/dparse { };
|
||||
|
||||
dpath = callPackage ../development/python-modules/dpath { };
|
||||
|
@ -3580,6 +3582,8 @@ in {
|
|||
|
||||
itsdangerous = callPackage ../development/python-modules/itsdangerous { };
|
||||
|
||||
itunespy = callPackage ../development/python-modules/itunespy { };
|
||||
|
||||
itypes = callPackage ../development/python-modules/itypes { };
|
||||
|
||||
j2cli = callPackage ../development/python-modules/j2cli { };
|
||||
|
@ -5773,6 +5777,8 @@ in {
|
|||
|
||||
pydenticon = callPackage ../development/python-modules/pydenticon { };
|
||||
|
||||
pydes = callPackage ../development/python-modules/pydes { };
|
||||
|
||||
py-desmume = callPackage ../development/python-modules/py-desmume { };
|
||||
|
||||
pydexcom = callPackage ../development/python-modules/pydexcom { };
|
||||
|
@ -7849,6 +7855,8 @@ in {
|
|||
|
||||
simanneal = callPackage ../development/python-modules/simanneal { };
|
||||
|
||||
simber = callPackage ../development/python-modules/simber { };
|
||||
|
||||
simpleaudio = callPackage ../development/python-modules/simpleaudio { };
|
||||
|
||||
simplebayes = callPackage ../development/python-modules/simplebayes { };
|
||||
|
@ -9286,6 +9294,8 @@ in {
|
|||
phantomjsSupport = false;
|
||||
};
|
||||
|
||||
youtube-search = callPackage ../development/python-modules/youtube-search { };
|
||||
|
||||
yowsup = callPackage ../development/python-modules/yowsup { };
|
||||
|
||||
yq = callPackage ../development/python-modules/yq {
|
||||
|
|
Loading…
Reference in a new issue