yle-dl: 20250316 -> 20250730 (#437751)

authored by Peder Bergebakken Sundt and committed by GitHub 48fd4a37 21cf49d5

+23 -28
+23 -28
pkgs/by-name/yl/yle-dl/package.nix
··· 1 1 { 2 2 lib, 3 + python3Packages, 3 4 fetchFromGitHub, 4 - rtmpdump, 5 - php, 5 + ffmpeg, 6 6 wget, 7 - python3Packages, 8 - ffmpeg, 9 - testers, 10 - yle-dl, 7 + versionCheckHook, 11 8 }: 12 9 13 - python3Packages.buildPythonApplication rec { 14 - pname = "yle-dl"; 15 - version = "20250316"; 10 + let 11 + version = "20250730"; 16 12 17 13 src = fetchFromGitHub { 18 14 owner = "aajanki"; 19 15 repo = "yle-dl"; 20 - rev = "releases/${version}"; 21 - hash = "sha256-8cJVaoZRKAR/mkRebpgMfwOWIdDySS8q6Dc2kanr4SE="; 16 + tag = "releases/${version}"; 17 + hash = "sha256-85Dj+r6heusvT3+y3SNYBBa5h/tje0G4XHmfJpCwkMY="; 22 18 }; 23 - 19 + in 20 + python3Packages.buildPythonApplication { 21 + pname = "yle-dl"; 22 + inherit version src; 24 23 pyproject = true; 25 24 26 - propagatedBuildInputs = with python3Packages; [ 27 - attrs 25 + build-system = with python3Packages; [ flit-core ]; 26 + 27 + dependencies = with python3Packages; [ 28 28 configargparse 29 - ffmpeg 30 - future 31 29 lxml 32 30 requests 33 31 ]; 34 - buildInputs = with python3Packages; [ 35 - flit-core 36 - ]; 32 + 37 33 pythonPath = [ 38 - rtmpdump 39 - php 40 34 wget 35 + ffmpeg 41 36 ]; 42 37 43 - doCheck = false; # tests require network access 44 - nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 38 + nativeCheckInputs = [ 39 + versionCheckHook 40 + # tests require network access 41 + # python3Packages.pytestCheckHook 42 + ]; 45 43 46 - passthru.tests.version = testers.testVersion { 47 - package = yle-dl; 48 - command = "yle-dl -h"; 49 - }; 44 + versionCheckProgramArg = "--version"; 50 45 51 46 meta = { 52 47 description = "Downloads videos from Yle (Finnish Broadcasting Company) servers"; 53 48 homepage = "https://aajanki.github.io/yle-dl/"; 54 - changelog = "https://github.com/aajanki/yle-dl/blob/${version}/ChangeLog"; 49 + changelog = "https://github.com/aajanki/yle-dl/blob/${src.tag}/ChangeLog"; 55 50 license = lib.licenses.gpl3Plus; 56 51 maintainers = with lib.maintainers; [ dezgeg ]; 57 52 platforms = lib.platforms.unix;