1{ lib, python, fetchFromGitHub }: 2 3python.pkgs.buildPythonPackage rec { 4 pname = "klaus"; 5 version = "1.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "jonashaag"; 9 repo = pname; 10 rev = version; 11 sha256 = "04zjvrpx66x2c0v74nvmq8x7s7c8994cv1zwd5hfn9alq82hqcgr"; 12 }; 13 14 prePatch = '' 15 substituteInPlace runtests.sh \ 16 --replace "mkdir -p \$builddir" "mkdir -p \$builddir && pwd" 17 ''; 18 19 propagatedBuildInputs = with python.pkgs; [ 20 six flask pygments dulwich httpauth humanize 21 ]; 22 23 checkInputs = with python.pkgs; [ 24 pytest requests python-ctags3 25 ] ++ lib.optional (!isPy3k) mock; 26 27 checkPhase = '' 28 ./runtests.sh 29 ''; 30 31 # Needs to set up some git repos 32 doCheck = false; 33 34 meta = with lib; { 35 description = "The first Git web viewer that Just Works"; 36 homepage = https://github.com/jonashaag/klaus; 37 license = licenses.isc; 38 maintainers = with maintainers; [ pSub ]; 39 }; 40}