Merge pull request #173134 from linsui/yutto

yutto: init at 2.0.0b13
This commit is contained in:
Ivv 2022-05-29 02:41:52 +02:00 committed by GitHub
commit e2bdf49580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, protobuf
}:
buildPythonPackage rec {
pname = "biliass";
version = "1.3.4";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-kktK+6rLwYhkG7LiTBlgBbiIN8apweg4l8pJSTjKQU4=";
};
propagatedBuildInputs = [ protobuf ];
pythonImportsCheck = [ "biliass" ];
meta = with lib; {
homepage = "https://github.com/yutto-dev/biliass";
description = "Convert Bilibili XML/protobuf danmaku to ASS subtitle";
license = licenses.gpl3Only;
maintainers = with maintainers; [ linsui ];
};
}

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonApplication
, fetchPypi
, pythonOlder
, poetry-core
, aiohttp
, aiofiles
, biliass
, dicttoxml
, colorama
, ffmpeg
, makeWrapper
}:
buildPythonApplication rec {
pname = "yutto";
version = "2.0.0b13";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-XqfbvlaJoRPpwnaUA52KloOsEOIt3YM0cq36DZN6lR8=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
aiofiles
biliass
dicttoxml
colorama
];
preFixup = ''
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
'';
pythonImportsCheck = [ "yutto" ];
meta = with lib; {
description = "A Bilibili downloader";
homepage = "https://github.com/yutto-dev/yutto";
license = licenses.gpl3Only;
maintainers = with maintainers; [ linsui ];
};
}

View file

@ -2671,6 +2671,8 @@ with pkgs;
bicon = callPackage ../applications/misc/bicon { };
biliass = with python3.pkgs; toPythonApplication biliass;
bindfs = callPackage ../tools/filesystems/bindfs { };
binwalk = with python3Packages; toPythonApplication binwalk;
@ -30975,6 +30977,8 @@ with pkgs;
ytmdl = callPackage ../tools/misc/ytmdl { };
yutto = with python3.pkgs; toPythonApplication yutto;
yuview = libsForQt5.yuview;
zam-plugins = callPackage ../applications/audio/zam-plugins { };

View file

@ -1227,6 +1227,8 @@ in {
bids-validator = callPackage ../development/python-modules/bids-validator { };
biliass = callPackage ../development/python-modules/biliass { };
billiard = callPackage ../development/python-modules/billiard { };
bimmer-connected = callPackage ../development/python-modules/bimmer-connected { };
@ -11377,6 +11379,8 @@ in {
yubico-client = callPackage ../development/python-modules/yubico-client { };
yutto = callPackage ../tools/misc/yutto { };
z3c-checkversions = callPackage ../development/python-modules/z3c-checkversions { };
z3 = (toPythonModule (pkgs.z3.override {