Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 793 B view raw
1{ lib 2, buildPythonPackage 3, internetarchive 4, fetchPypi 5, youtube-dl 6, docopt 7, isPy27 8}: 9 10buildPythonPackage rec { 11 pname = "tubeup"; 12 version = "0.0.25"; 13 14 disabled = isPy27; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "c1869363eddb85f39c05971d159bb2bf8cafa596acff3b9117635ebebfd1d342"; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.py --replace "docopt==0.6.2" "docopt" 23 ''; 24 25 propagatedBuildInputs = [ internetarchive docopt youtube-dl ]; 26 27 pythonImportsCheck = [ "tubeup" ]; 28 29 # Tests failing upstream 30 doCheck = false; 31 32 meta = with lib; { 33 description = "Youtube (and other video site) to Internet Archive Uploader"; 34 homepage = "https://github.com/bibanon/tubeup"; 35 license = licenses.gpl3Only; 36 maintainers = [ maintainers.marsam ]; 37 }; 38}