Merge pull request #284587 from atorres1985-contrib/mov-cli

mov-cli: update
This commit is contained in:
Weijia Wang 2024-02-05 01:05:28 +01:00 committed by GitHub
commit 19eae257b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 64 additions and 42 deletions

View file

@ -1,40 +0,0 @@
{ lib
, python3
, fetchFromGitHub
, mpv
}:
python3.pkgs.buildPythonPackage rec {
pname = "mov-cli";
version = "1.5.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "mov-cli";
repo = "mov-cli";
rev = version;
sha256 = "sha256-WhoP4FcoO9+O9rfpC3oDQkVIpVOqxfdLRygHgf1O01g=";
};
makeWrapperArgs = [
"--prefix" "PATH" ":" "${lib.getBin mpv}/bin"
];
propagatedBuildInputs = with python3.pkgs; [
poetry-core
krfzf-py
pycrypto
setuptools
httpx
click
beautifulsoup4
colorama
];
meta = with lib; {
homepage = "https://github.com/mov-cli/mov-cli";
description = "A cli tool to browse and watch movies";
license = licenses.gpl3Only;
maintainers = with maintainers; [ baitinq ];
mainProgram = "mov-cli";
};
}

View file

@ -0,0 +1,64 @@
{ lib
, fetchFromGitHub
, ffmpeg
, fzf
, mpv
, python3
}:
let
pname = "mov-cli";
version = "1.5.7";
in
python3.pkgs.buildPythonPackage {
inherit pname version;
pyproject = true;
src = fetchFromGitHub {
owner = "mov-cli";
repo = "mov-cli";
rev = version;
hash = "sha256-OJhZtrSB5rjPY80GkTSU82hkcBgFYpW7Rc24BlBH7CE=";
};
propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4
click
colorama
httpx
krfzf-py
lxml
poetry-core
pycrypto
setuptools
six
tldextract
];
nativeBuildInputs = [
python3.pkgs.pythonRelaxDepsHook
];
pythonRelaxDeps = [
"httpx"
"tldextract"
];
makeWrapperArgs = let
binPath = lib.makeBinPath [
ffmpeg
fzf
mpv
];
in [
"--prefix PATH : ${binPath}"
];
meta = with lib; {
homepage = "https://github.com/mov-cli/mov-cli";
description = "A cli tool to browse and watch movies";
license = with lib.licenses; [ gpl3Only ];
mainProgram = "mov-cli";
maintainers = with lib.maintainers; [ baitinq ];
};
}

View file

@ -258,8 +258,6 @@ with pkgs;
ariang = callPackage ../servers/ariang { };
mov-cli = callPackage ../applications/video/mov-cli { };
ani-cli = callPackage ../applications/video/ani-cli { };
dra-cla = callPackage ../applications/video/dra-cla { };