Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / yu / yutto / package.nix
blobeb5b983e8f96da4655bd535b517d569e0b89057d
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5   ffmpeg,
6   nix-update-script,
7 }:
9 python3Packages.buildPythonApplication rec {
10   pname = "yutto";
11   version = "2.0.0-beta.40";
12   format = "pyproject";
14   disabled = python3Packages.pythonOlder "3.9";
16   src = fetchFromGitHub {
17     owner = "yutto-dev";
18     repo = "yutto";
19     rev = "v${version}";
20     hash = "sha256-gopCQ8tEhwtDFs/w+jafD3ZW/4MIrYxPcMh8SbOCwww=";
21   };
23   nativeBuildInputs = with python3Packages; [ poetry-core ];
25   propagatedBuildInputs =
26     with python3Packages;
27     [
28       httpx
29       aiofiles
30       biliass
31       dict2xml
32       colorama
33       typing-extensions
34     ]
35     ++ (with httpx.optional-dependencies; http2 ++ socks);
37   preFixup = ''
38     makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
39   '';
41   pythonImportsCheck = [ "yutto" ];
43   passthru.updateScript = nix-update-script {
44     extraArgs = [
45       "--version"
46       "unstable"
47     ];
48   };
50   meta = with lib; {
51     description = "Bilibili downloader";
52     homepage = "https://github.com/yutto-dev/yutto";
53     license = licenses.gpl3Only;
54     maintainers = with maintainers; [ linsui ];
55     mainProgram = "yutto";
56   };