diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-01-28 14:48:22 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-01-28 14:55:36 -0300 |
commit | 96e4f532f20ca53bb74abea24049ea74e5892798 (patch) | |
tree | 62af826cbe437e497ac1a6bb529d9d3a50379b95 /pkgs/applications/video | |
parent | 15fcb26b3c43d93f3192a0e7d0720615c3104967 (diff) | |
download | nixlib-96e4f532f20ca53bb74abea24049ea74e5892798.tar nixlib-96e4f532f20ca53bb74abea24049ea74e5892798.tar.gz nixlib-96e4f532f20ca53bb74abea24049ea74e5892798.tar.bz2 nixlib-96e4f532f20ca53bb74abea24049ea74e5892798.tar.lz nixlib-96e4f532f20ca53bb74abea24049ea74e5892798.tar.xz nixlib-96e4f532f20ca53bb74abea24049ea74e5892798.tar.zst nixlib-96e4f532f20ca53bb74abea24049ea74e5892798.zip |
mov-cli: refactor
- get rid of rec - sha256 -> hash - extra dependencies
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/mov-cli/default.nix | 52 |
1 files changed, 38 insertions, 14 deletions
diff --git a/pkgs/applications/video/mov-cli/default.nix b/pkgs/applications/video/mov-cli/default.nix index 829c4b83778d..5fab5f9d5588 100644 --- a/pkgs/applications/video/mov-cli/default.nix +++ b/pkgs/applications/video/mov-cli/default.nix @@ -1,40 +1,64 @@ { lib -, python3 , fetchFromGitHub +, ffmpeg +, fzf , mpv +, python3 }: -python3.pkgs.buildPythonPackage rec { +let pname = "mov-cli"; version = "1.5.4"; - format = "pyproject"; +in +python3.pkgs.buildPythonPackage { + inherit pname version; + pyproject = true; src = fetchFromGitHub { owner = "mov-cli"; repo = "mov-cli"; rev = version; - sha256 = "sha256-WhoP4FcoO9+O9rfpC3oDQkVIpVOqxfdLRygHgf1O01g="; + hash = "sha256-WhoP4FcoO9+O9rfpC3oDQkVIpVOqxfdLRygHgf1O01g="; }; - makeWrapperArgs = [ - "--prefix" "PATH" ":" "${lib.getBin mpv}/bin" - ]; propagatedBuildInputs = with python3.pkgs; [ - poetry-core + beautifulsoup4 + click + colorama + httpx krfzf-py + lxml + poetry-core pycrypto setuptools - httpx - click - beautifulsoup4 - colorama + 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 = licenses.gpl3Only; - maintainers = with maintainers; [ baitinq ]; + license = with lib.licenses; [ gpl3Only ]; mainProgram = "mov-cli"; + maintainers = with lib.maintainers; [ baitinq ]; }; } |