biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / yle-dl / default.nix
blob514bb441fd97809a46d6aff5087e71aabd10d5a1
1 { lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg
2 , testers, yle-dl
3 }:
5 python3Packages.buildPythonApplication rec {
6   pname = "yle-dl";
7   version = "20240706";
9   src = fetchFromGitHub {
10     owner = "aajanki";
11     repo = "yle-dl";
12     rev = version;
13     hash = "sha256-X5fkcJgTVGASoVvvshGWUFNzB1V4KMSKgwoxzP62mxc=";
14   };
16   propagatedBuildInputs = with python3Packages; [
17     attrs configargparse ffmpeg future lxml requests
18   ];
19   pythonPath = [ rtmpdump php wget ];
21   doCheck = false; # tests require network access
22   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
24   passthru.tests.version = testers.testVersion {
25     package = yle-dl;
26     command = "yle-dl -h";
27   };
29   meta = with lib; {
30     description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
31     homepage = "https://aajanki.github.io/yle-dl/";
32     changelog = "https://github.com/aajanki/yle-dl/blob/${version}/ChangeLog";
33     license = licenses.gpl3Plus;
34     maintainers = with maintainers; [ dezgeg ];
35     platforms = platforms.unix;
36     mainProgram = "yle-dl";
37   };