1{
2 lib,
3 buildPythonPackage,
4 internetarchive,
5 fetchPypi,
6 yt-dlp,
7 docopt,
8 pythonOlder,
9 pythonRelaxDepsHook,
10}:
11
12buildPythonPackage rec {
13 pname = "tubeup";
14 version = "2023.9.19";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "sha256-Pp4h0MBoYhczmxPq21cLiYpLUeFP+2JoACcFpBl3b0E=";
22 };
23
24 nativeBuildInputs = [ pythonRelaxDepsHook ];
25
26 propagatedBuildInputs = [
27 internetarchive
28 docopt
29 yt-dlp
30 ];
31
32 pythonRelaxDeps = [ "docopt" ];
33
34 pythonImportsCheck = [ "tubeup" ];
35
36 # Tests failing upstream
37 doCheck = false;
38
39 meta = with lib; {
40 description = "Youtube (and other video site) to Internet Archive Uploader";
41 mainProgram = "tubeup";
42 homepage = "https://github.com/bibanon/tubeup";
43 changelog = "https://github.com/bibanon/tubeup/releases/tag/${version}";
44 license = licenses.gpl3Only;
45 maintainers = with maintainers; [ ];
46 };
47}