mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
442bd5b4d1
There are two packages used to download from youtube: youtube-dl and youtube-dlc, this packaged was using the wrong one
39 lines
791 B
Nix
39 lines
791 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, internetarchive
|
|
, fetchPypi
|
|
, youtube-dlc
|
|
, docopt
|
|
, isPy27
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tubeup";
|
|
version = "0.0.20";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8bf4004629b8427173c8259e1a09065db99135d6cc390b70a8a67b52a34a3f67";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "docopt==0.6.2" "docopt"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ internetarchive docopt youtube-dlc ];
|
|
|
|
pythonImportsCheck = [ "tubeup" ];
|
|
|
|
# Tests failing upstream
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Youtube (and other video site) to Internet Archive Uploader";
|
|
homepage = "https://github.com/bibanon/tubeup";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|