nixpkgs/pkgs/development/python-modules/tubeup/default.nix

39 lines
793 B
Nix
Raw Normal View History

2020-07-05 04:20:00 +00:00
{ lib
, buildPythonPackage
, internetarchive
, fetchPypi
, youtube-dl
2020-07-05 04:20:00 +00:00
, docopt
, isPy27
}:
buildPythonPackage rec {
pname = "tubeup";
version = "0.0.23";
2020-07-05 04:20:00 +00:00
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "d504327e055889edfe56512a829f76b24b40c5965b93120f8b9300f5390014b4";
2020-07-05 04:20:00 +00:00
};
postPatch = ''
substituteInPlace setup.py --replace "docopt==0.6.2" "docopt"
'';
propagatedBuildInputs = [ internetarchive docopt youtube-dl ];
2020-07-05 04:20:00 +00:00
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";
2021-02-14 04:20:00 +00:00
license = licenses.gpl3Only;
2020-07-05 04:20:00 +00:00
maintainers = [ maintainers.marsam ];
};
}