2022-09-22 12:36:57 +00:00
|
|
|
{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg
|
|
|
|
, testers, yle-dl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "yle-dl";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "20220830";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aajanki";
|
|
|
|
repo = "yle-dl";
|
|
|
|
rev = version;
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-pQIe5kYsiK1tHx3hx4bgpS5UwuBrEyX3SBMLwSjxXc4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-07-24 12:14:16 +00:00
|
|
|
attrs configargparse ffmpeg future lxml requests
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2020-11-03 02:18:15 +00:00
|
|
|
pythonPath = [ rtmpdump php wget ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # tests require network access
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = yle-dl;
|
|
|
|
command = "yle-dl -h";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
|
|
|
|
homepage = "https://aajanki.github.io/yle-dl/";
|
2021-05-20 23:08:51 +00:00
|
|
|
changelog = "https://github.com/aajanki/yle-dl/blob/${version}/ChangeLog";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg ];
|
2020-11-03 02:18:15 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|