2024-02-07 01:22:34 +00:00
|
|
|
{ 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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cli tool to browse and watch movies";
|
2024-02-07 01:22:34 +00:00
|
|
|
license = with lib.licenses; [ gpl3Only ];
|
|
|
|
mainProgram = "mov-cli";
|
|
|
|
maintainers = with lib.maintainers; [ baitinq ];
|
|
|
|
};
|
|
|
|
}
|