depot/third_party/nixpkgs/pkgs/development/python-modules/tubeup/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

55 lines
1,004 B
Nix

{ lib
, buildPythonPackage
, internetarchive
, fetchPypi
, yt-dlp
, docopt
, pythonOlder
, urllib3
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "tubeup";
version = "2023.5.29";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-5tvRaIXVzZcNy40uOEPwwN4EKPvvZPiR3qIdmiZSXWw=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
internetarchive
docopt
urllib3
yt-dlp
];
pythonRelaxDeps = [
"internetarchive"
"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 ];
};
}