yle-dl: 20220425 → 20220830

This commit is contained in:
Nikolay Korotkiy 2022-09-16 11:10:38 +03:00
parent 44ea61d940
commit b20d3e21b4
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -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/";