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

28 lines
823 B
Nix
Raw Normal View History

2015-11-21 22:44:32 +01:00
{ stdenv, fetchFromGitHub, rtmpdump, php, pythonPackages }:
2017-07-21 10:24:21 +02:00
pythonPackages.buildPythonApplication rec {
2015-11-21 22:44:32 +01:00
name = "yle-dl-${version}";
2017-11-29 23:40:24 +01:00
version = "2.28";
2015-11-21 22:44:32 +01:00
src = fetchFromGitHub {
owner = "aajanki";
repo = "yle-dl";
rev = version;
2017-11-29 23:40:24 +01:00
sha256 = "1nb3gmkizgkd09slihc2iaf3rh1s7bdhy9zydkfghmqi7nv4mmq0";
2015-11-21 22:44:32 +01:00
};
2017-11-03 19:01:28 +01:00
propagatedBuildInputs = with pythonPackages; [ lxml pyamf pycrypto requests ];
pythonPath = [ rtmpdump php ];
doCheck = false; # tests require network access
checkInputs = with pythonPackages; [ pytest pytestrunner ];
2015-11-21 22:44:32 +01:00
meta = with stdenv.lib; {
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
homepage = https://aajanki.github.io/yle-dl/;
license = licenses.gpl3;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}