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