889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
40 lines
841 B
Nix
40 lines
841 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, internetarchive
|
|
, fetchPypi
|
|
, yt-dlp
|
|
, docopt
|
|
, isPy27
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tubeup";
|
|
version = "0.0.32";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-YWBp6qXz4hNTBzywBGTXDQSzbWfoEEvJLQL5wy8DQ1g=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "docopt==0.6.2" "docopt" \
|
|
--replace "internetarchive==2.0.3" "internetarchive"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ internetarchive docopt yt-dlp ];
|
|
|
|
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";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|