2020-10-16 20:44:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, internetarchive
|
|
|
|
, fetchPypi
|
2021-02-05 17:12:51 +00:00
|
|
|
, youtube-dl
|
2020-10-16 20:44:37 +00:00
|
|
|
, docopt
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tubeup";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.0.26";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "842bc03c354d8f952436109264db6cd9146f26cee281d1540d5d7c3aa7371bcc";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "docopt==0.6.2" "docopt"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [ internetarchive docopt youtube-dl ];
|
2020-10-16 20:44:37 +00: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-16 17:04:54 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-10-16 20:44:37 +00:00
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|