5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
52 lines
967 B
Nix
52 lines
967 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, internetarchive
|
|
, fetchPypi
|
|
, yt-dlp
|
|
, docopt
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tubeup";
|
|
version = "2023.9.19";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Pp4h0MBoYhczmxPq21cLiYpLUeFP+2JoACcFpBl3b0E=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
internetarchive
|
|
docopt
|
|
yt-dlp
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"docopt"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"tubeup"
|
|
];
|
|
|
|
# Tests failing upstream
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Youtube (and other video site) to Internet Archive Uploader";
|
|
mainProgram = "tubeup";
|
|
homepage = "https://github.com/bibanon/tubeup";
|
|
changelog = "https://github.com/bibanon/tubeup/releases/tag/${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|