rubber: 1.5.1 -> 1.6.0 (#187738)

* rubber: 1.5.1 -> 1.6.0

authored by Peter Hoeg and committed by GitHub 7a501e1f 237604af

+20 -9
+20 -9
pkgs/tools/typesetting/rubber/default.nix
··· 1 - { fetchurl, lib, stdenv, python3Packages, texinfo }: 1 + { lib, stdenv, fetchFromGitLab, python3Packages, texinfo }: 2 2 3 3 python3Packages.buildPythonApplication rec { 4 4 pname = "rubber"; 5 - version = "1.5.1"; 5 + version = "1.6.0"; 6 6 7 - src = fetchurl { 8 - url = "https://launchpad.net/rubber/trunk/${version}/+download/${pname}-${version}.tar.gz"; 9 - sha256 = "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p"; 7 + src = fetchFromGitLab { 8 + owner = "latex-rubber"; 9 + repo = "rubber"; 10 + rev = version; 11 + hash = "sha256-7sv9N3PES5N41yYyXNWfaZ6IhLW6SqMiCHdamsSPQzg="; 10 12 }; 11 13 12 14 # I'm sure there is a better way to pass these parameters to the build script... 13 15 postPatch = '' 14 16 substituteInPlace setup.py \ 15 - --replace 'pdf = True' 'pdf = False' \ 17 + --replace 'pdf = True' 'pdf = False' \ 18 + --replace '$base/info' 'share/info' \ 16 19 --replace '$base/man' 'share/man' \ 17 - --replace '$base/info' 'share/info' \ 18 20 --replace '$base/share' 'share' 21 + 22 + substituteInPlace tests/run.sh \ 23 + --replace /var/tmp /tmp 19 24 ''; 20 25 21 26 nativeBuildInputs = [ texinfo ]; 22 27 23 28 checkPhase = '' 24 - cd tests && ${stdenv.shell} run.sh 29 + runHook preCheck 30 + 31 + pushd tests >/dev/null 32 + ${stdenv.shell} run.sh 33 + popd >/dev/null 34 + 35 + runHook postCheck 25 36 ''; 26 37 27 38 meta = with lib; { ··· 36 47 of pdfLaTeX to produce PDF documents. 37 48 ''; 38 49 license = licenses.gpl2Plus; 39 - homepage = "https://launchpad.net/rubber"; 50 + homepage = "https://gitlab.com/latex-rubber/rubber"; 40 51 maintainers = with maintainers; [ ttuegel peterhoeg ]; 41 52 platforms = platforms.unix; 42 53 };