From b20d3e21b434704b9a57061fce261dd58a061920 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Fri, 16 Sep 2022 11:10:38 +0300 Subject: [PATCH] =?UTF-8?q?yle-dl:=2020220425=20=E2=86=92=2020220830?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/tools/misc/yle-dl/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/yle-dl/default.nix b/pkgs/tools/misc/yle-dl/default.nix index 8a976ae7831f..47f3b1d29891 100644 --- a/pkgs/tools/misc/yle-dl/default.nix +++ b/pkgs/tools/misc/yle-dl/default.nix @@ -1,14 +1,16 @@ -{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg }: +{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg +, testers, yle-dl +}: python3Packages.buildPythonApplication rec { pname = "yle-dl"; - version = "20220425"; + version = "20220830"; src = fetchFromGitHub { owner = "aajanki"; repo = "yle-dl"; rev = version; - sha256 = "sha256-PIoJ+enbRwXiszh7BTkfeoA6IfDXoFOi9WitzQp3EQE="; + hash = "sha256-pQIe5kYsiK1tHx3hx4bgpS5UwuBrEyX3SBMLwSjxXc4="; }; propagatedBuildInputs = with python3Packages; [ @@ -19,6 +21,11 @@ python3Packages.buildPythonApplication rec { doCheck = false; # tests require network access checkInputs = with python3Packages; [ pytestCheckHook ]; + passthru.tests.version = testers.testVersion { + package = yle-dl; + command = "yle-dl -h"; + }; + meta = with lib; { description = "Downloads videos from Yle (Finnish Broadcasting Company) servers"; homepage = "https://aajanki.github.io/yle-dl/";