2020-07-05 06:20:00 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, internetarchive
|
|
|
|
, fetchPypi
|
2021-11-04 18:16:02 +01:00
|
|
|
, yt-dlp
|
2020-07-05 06:20:00 +02:00
|
|
|
, docopt
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tubeup";
|
2022-05-13 06:51:50 +02:00
|
|
|
version = "0.0.30";
|
2020-07-05 06:20:00 +02:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-13 06:51:50 +02:00
|
|
|
sha256 = "sha256-xN3H3l4ANT7/tXg+oGScvE0Atf6h9CVbODaWybe8a9o=";
|
2020-07-05 06:20:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-11-04 18:16:02 +01:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "docopt==0.6.2" "docopt" \
|
|
|
|
--replace "internetarchive==2.0.3" "internetarchive"
|
2020-07-05 06:20:00 +02:00
|
|
|
'';
|
|
|
|
|
2021-11-04 18:16:02 +01:00
|
|
|
propagatedBuildInputs = [ internetarchive docopt yt-dlp ];
|
2020-07-05 06:20:00 +02: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";
|
2021-02-14 05:20:00 +01:00
|
|
|
license = licenses.gpl3Only;
|
2020-07-05 06:20:00 +02:00
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|