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