2020-07-05 05:20:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, internetarchive
|
|
|
|
, fetchPypi
|
2021-01-20 04:20:00 +00:00
|
|
|
, youtube-dl
|
2020-07-05 05:20:00 +01:00
|
|
|
, docopt
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tubeup";
|
2021-01-20 04:20:00 +00:00
|
|
|
version = "0.0.21";
|
2020-07-05 05:20:00 +01:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-20 04:20:00 +00:00
|
|
|
sha256 = "326a499be032bee7f7ed921d85abff4b3b4dcd2c3d6ad694f08ef98dbcef19b6";
|
2020-07-05 05:20:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "docopt==0.6.2" "docopt"
|
|
|
|
'';
|
|
|
|
|
2021-01-20 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [ internetarchive docopt youtube-dl ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|