depot/third_party/nixpkgs/pkgs/development/python-modules/tubeup/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

54 lines
981 B
Nix

{ lib
, buildPythonPackage
, internetarchive
, fetchPypi
, yt-dlp
, docopt
, pythonOlder
, urllib3
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "tubeup";
version = "2023.8.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-v2fDB76OM/cpi/lJRKH/JnVXl9r/W9jCzlTAJ31N7VU=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
internetarchive
docopt
urllib3
yt-dlp
];
pythonRelaxDeps = [
"urllib3"
"docopt"
];
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";
changelog = "https://github.com/bibanon/tubeup/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ marsam ];
};
}