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.27";
13
14 disabled = isPy27;
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "77affb4105fc319d82c56aa5706151a4976b8b504dd252fe3db01443e27cba50";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace "docopt==0.6.2" "docopt" \
24 --replace "internetarchive==2.0.3" "internetarchive"
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}