plausible: useFetchCargoVendor (#377090)
[NixPkgs.git] / pkgs / by-name / mo / mov-cli / package.nix
blob0e0c0004ebe343a78185cad12c200cf217a242c1
2   lib,
3   fetchFromGitHub,
4   ffmpeg,
5   fzf,
6   mpv,
7   python3,
8 }:
10 let
11   pname = "mov-cli";
12   version = "4.4.16";
14 python3.pkgs.buildPythonPackage {
15   inherit pname version;
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "mov-cli";
20     repo = "mov-cli";
21     tag = version;
22     hash = "sha256-hOnbBXzg9S0pqEcdXVrdG+P9tLqE8NC++ppOwqd+y+M=";
23   };
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   ];
47   pythonRelaxDeps = [
48     "httpx"
49     "tldextract"
50   ];
52   makeWrapperArgs =
53     let
54       binPath = lib.makeBinPath [
55         ffmpeg
56         fzf
57         mpv
58       ];
59     in
60     [
61       "--prefix PATH : ${binPath}"
62     ];
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   };