depot/third_party/nixpkgs/pkgs/development/python-modules/tubeup/default.nix

47 lines
903 B
Nix

{
lib,
buildPythonPackage,
setuptools,
internetarchive,
fetchPypi,
yt-dlp,
docopt,
pythonOlder,
}:
buildPythonPackage rec {
pname = "tubeup";
version = "2024.11.13";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-BPkcz+y90NVDX2jjwOZ/9F/Oedg+LXc34Tee6ZfJ1vQ=";
};
build-system = [ setuptools ];
dependencies = [
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 = [ ];
};
}