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
|
|
|
|
, urllib3
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonRelaxDepsHook
|
2020-10-16 20:44:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tubeup";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2023.5.29";
|
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-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-5tvRaIXVzZcNy40uOEPwwN4EKPvvZPiR3qIdmiZSXWw=";
|
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
|
|
|
|
urllib3
|
|
|
|
yt-dlp
|
|
|
|
];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"internetarchive"
|
|
|
|
"urllib3"
|
|
|
|
"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
|
|
|
};
|
|
|
|
}
|