Merge pull request #284587 from atorres1985-contrib/mov-cli
mov-cli: update
This commit is contained in:
commit
19eae257b1
3 changed files with 64 additions and 42 deletions
|
@ -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";
|
||||
};
|
||||
}
|
64
pkgs/by-name/mo/mov-cli/package.nix
Normal file
64
pkgs/by-name/mo/mov-cli/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue