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