diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-09-16 11:05:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 11:05:06 +0200 |
commit | 0a633fd8089484db81767a67b07570d163b11ea3 (patch) | |
tree | 562005f1dd3d19a9e32194e6a1f9ebe61f306d29 | |
parent | 2a6a957e368e44b986dbeb730f678c67be4bfb31 (diff) | |
parent | b20d3e21b434704b9a57061fce261dd58a061920 (diff) |
Merge pull request #191458 from sikmir/yle-dl
-rw-r--r-- | pkgs/tools/misc/yle-dl/default.nix | 13 |
1 files 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/"; |