2022-09-16 08:10:38 +00:00
|
|
|
{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg
|
|
|
|
, testers, yle-dl
|
|
|
|
}:
|
2015-11-21 21:44:32 +00:00
|
|
|
|
2020-10-11 00:18:51 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "yle-dl";
|
2024-07-14 19:53:52 +00:00
|
|
|
version = "20240706";
|
2015-11-21 21:44:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aajanki";
|
|
|
|
repo = "yle-dl";
|
|
|
|
rev = version;
|
2024-07-14 19:53:52 +00:00
|
|
|
hash = "sha256-X5fkcJgTVGASoVvvshGWUFNzB1V4KMSKgwoxzP62mxc=";
|
2015-11-21 21:44:32 +00:00
|
|
|
};
|
|
|
|
|
2020-10-11 00:18:51 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-07-20 21:26:16 +00:00
|
|
|
attrs configargparse ffmpeg future lxml requests
|
2020-01-16 11:09:01 +00:00
|
|
|
];
|
2020-10-11 00:18:51 +00:00
|
|
|
pythonPath = [ rtmpdump php wget ];
|
2017-11-03 18:01:28 +00:00
|
|
|
|
|
|
|
doCheck = false; # tests require network access
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
2015-11-21 21:44:32 +00:00
|
|
|
|
2022-09-16 08:10:38 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = yle-dl;
|
|
|
|
command = "yle-dl -h";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-21 21:44:32 +00:00
|
|
|
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://aajanki.github.io/yle-dl/";
|
2021-05-17 06:25:08 +00:00
|
|
|
changelog = "https://github.com/aajanki/yle-dl/blob/${version}/ChangeLog";
|
2020-10-11 00:18:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-06-01 21:54:27 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg ];
|
2020-10-27 14:03:10 +00:00
|
|
|
platforms = platforms.unix;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "yle-dl";
|
2015-11-21 21:44:32 +00:00
|
|
|
};
|
|
|
|
}
|