mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
080da6a65f
yle-dl was failing with the following error: ImportError: No module named pkg_resources Adding setuptools to propagatedBuildInputs fixes this issue.
30 lines
852 B
Nix
30 lines
852 B
Nix
{ stdenv, fetchFromGitHub, rtmpdump, php, pythonPackages, ffmpeg }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "yle-dl";
|
|
version = "2.31";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aajanki";
|
|
repo = "yle-dl";
|
|
rev = version;
|
|
sha256 = "0k93p9csyjm0w33diwl5s22kzs3g78jl3n9k8nxxpqrybfjl912f";
|
|
};
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
lxml pyamf pycrypto requests future ffmpeg setuptools
|
|
];
|
|
pythonPath = [ rtmpdump php ];
|
|
|
|
doCheck = false; # tests require network access
|
|
checkInputs = with pythonPackages; [ pytest pytestrunner ];
|
|
|
|
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;
|
|
};
|
|
}
|