nixpkgs/pkgs/tools/misc/yle-dl/default.nix

31 lines
957 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rtmpdump, php, wget, python3Packages, ffmpeg }:
2015-11-21 21:44:32 +00:00
2020-10-11 00:18:51 +00:00
python3Packages.buildPythonApplication rec {
pname = "yle-dl";
2021-10-04 21:48:48 +00:00
version = "20210917";
2015-11-21 21:44:32 +00:00
src = fetchFromGitHub {
owner = "aajanki";
repo = "yle-dl";
rev = version;
2021-10-04 21:48:48 +00:00
sha256 = "sha256-l8Wv15DLWRvJ+I6KeTNbIjp+S5EgoqhLOWd0wEyXckk=";
2015-11-21 21:44:32 +00:00
};
2020-10-11 00:18:51 +00:00
propagatedBuildInputs = with python3Packages; [
attrs configargparse ffmpeg future lxml requests
];
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
2021-08-23 11:33:56 +00:00
checkInputs = with python3Packages; [ pytestCheckHook ];
2015-11-21 21:44:32 +00:00
meta = with lib; {
2015-11-21 21:44:32 +00:00
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
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;
maintainers = with maintainers; [ dezgeg SuperSandro2000 ];
platforms = platforms.unix;
2015-11-21 21:44:32 +00:00
};
}