commit
e2bdf49580
4 changed files with 87 additions and 0 deletions
28
pkgs/development/python-modules/biliass/default.nix
Normal file
28
pkgs/development/python-modules/biliass/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
51
pkgs/tools/misc/yutto/default.nix
Normal file
51
pkgs/tools/misc/yutto/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue