2020-10-16 20:44:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, internetarchive
|
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, yt-dlp
|
2020-10-16 20:44:37 +00:00
|
|
|
, docopt
|
2023-01-11 07:51:40 +00:00
|
|
|
, pythonOlder
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonRelaxDepsHook
|
2020-10-16 20:44:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tubeup";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2023.8.19";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-0atpOUJIfXgw/5fi5w2ciAFDMgWmVH4U8d84zwLCRXk=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
internetarchive
|
|
|
|
docopt
|
|
|
|
yt-dlp
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"docopt"
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tubeup"
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
# Tests failing upstream
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Youtube (and other video site) to Internet Archive Uploader";
|
|
|
|
homepage = "https://github.com/bibanon/tubeup";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/bibanon/tubeup/releases/tag/${version}";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = licenses.gpl3Only;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|