Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, ffmpeg
|
|
, fzf
|
|
, mpv
|
|
, python3
|
|
}:
|
|
|
|
let
|
|
pname = "mov-cli";
|
|
version = "4.4.15";
|
|
in
|
|
python3.pkgs.buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mov-cli";
|
|
repo = "mov-cli";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-mHtKQtLhHYwd2GEA0rCZQ4C/DEgsc6Rk7ZLpXFyW5d8=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
beautifulsoup4
|
|
click
|
|
colorama
|
|
deprecation
|
|
httpx
|
|
inquirer
|
|
krfzf-py
|
|
lxml
|
|
poetry-core
|
|
pycrypto
|
|
python-decouple
|
|
setuptools
|
|
six
|
|
thefuzz
|
|
tldextract
|
|
toml
|
|
typer
|
|
unidecode
|
|
(callPackage ./mov-cli-test.nix {})
|
|
];
|
|
|
|
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 = "Cli tool to browse and watch movies";
|
|
license = with lib.licenses; [ gpl3Only ];
|
|
mainProgram = "mov-cli";
|
|
maintainers = with lib.maintainers; [ baitinq ];
|
|
};
|
|
}
|