2020-07-05 05:20:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, internetarchive
|
|
|
|
, fetchPypi
|
2020-11-18 23:12:55 +00:00
|
|
|
, youtube-dlc
|
2020-07-05 05:20:00 +01:00
|
|
|
, docopt
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tubeup";
|
2020-11-04 14:04:24 +00:00
|
|
|
version = "0.0.20";
|
2020-07-05 05:20:00 +01:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:04:24 +00:00
|
|
|
sha256 = "8bf4004629b8427173c8259e1a09065db99135d6cc390b70a8a67b52a34a3f67";
|
2020-07-05 05:20:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "docopt==0.6.2" "docopt"
|
|
|
|
'';
|
|
|
|
|
2020-11-18 23:12:55 +00:00
|
|
|
propagatedBuildInputs = [ internetarchive docopt youtube-dlc ];
|
2020-07-05 05:20:00 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|