1{
2 lib,
3 fetchFromGitHub,
4 ffmpeg,
5 fzf,
6 mpv,
7 python3,
8}:
9
10let
11 pname = "mov-cli";
12 version = "4.4.19";
13in
14python3.pkgs.buildPythonPackage {
15 inherit pname version;
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "mov-cli";
20 repo = "mov-cli";
21 tag = version;
22 hash = "sha256-sNeScHmQYR4Avr5OEFpE90Qn7udBgi1Ox5elFSyKXrY=";
23 };
24
25 propagatedBuildInputs = with python3.pkgs; [
26 beautifulsoup4
27 click
28 colorama
29 deprecation
30 httpx
31 inquirer
32 krfzf-py
33 lxml
34 poetry-core
35 pycrypto
36 python-decouple
37 setuptools
38 six
39 thefuzz
40 tldextract
41 toml
42 typer
43 unidecode
44 (callPackage ./mov-cli-test.nix { })
45 ];
46
47 pythonRelaxDeps = [
48 "httpx"
49 "tldextract"
50 ];
51
52 makeWrapperArgs =
53 let
54 binPath = lib.makeBinPath [
55 ffmpeg
56 fzf
57 mpv
58 ];
59 in
60 [
61 "--prefix PATH : ${binPath}"
62 ];
63
64 meta = with lib; {
65 homepage = "https://github.com/mov-cli/mov-cli";
66 description = "Cli tool to browse and watch movies";
67 license = with lib.licenses; [ gpl3Only ];
68 mainProgram = "mov-cli";
69 maintainers = with lib.maintainers; [ baitinq ];
70 };
71}