1{ lib
2, buildPythonPackage
3, internetarchive
4, fetchPypi
5, yt-dlp
6, docopt
7, isPy27
8}:
9
10buildPythonPackage rec {
11 pname = "tubeup";
12 version = "0.0.34";
13 format = "setuptools";
14
15 disabled = isPy27;
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "ae1e606b243fd70742f8b5871c497628d258ee9f416caa46544aca9a5fbfbca0";
20 };
21
22 postPatch = ''
23 substituteInPlace setup.py \
24 --replace "docopt==0.6.2" "docopt"
25 '';
26
27 propagatedBuildInputs = [ internetarchive docopt yt-dlp ];
28
29 pythonImportsCheck = [ "tubeup" ];
30
31 # Tests failing upstream
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Youtube (and other video site) to Internet Archive Uploader";
36 homepage = "https://github.com/bibanon/tubeup";
37 license = licenses.gpl3Only;
38 maintainers = [ maintainers.marsam ];
39 };
40}