2019-12-26 09:20:00 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, six, flask, pygments, dulwich, httpauth, humanize, pytest, requests, python-ctags3, mock }:
|
2018-03-18 11:25:09 +00:00
|
|
|
|
2019-12-26 09:20:00 +00:00
|
|
|
buildPythonPackage rec {
|
2018-03-18 11:25:09 +00:00
|
|
|
pname = "klaus";
|
2019-12-23 17:49:28 +00:00
|
|
|
version = "1.5.1";
|
2018-03-18 11:25:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonashaag";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-12-23 17:49:28 +00:00
|
|
|
sha256 = "1432m3ki2g4ma10pfv310q1w4da46b0y2jklb8ajbz8a09ms6mfx";
|
2018-03-18 11:25:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace runtests.sh \
|
|
|
|
--replace "mkdir -p \$builddir" "mkdir -p \$builddir && pwd"
|
|
|
|
'';
|
|
|
|
|
2019-12-26 09:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
2018-03-18 11:25:09 +00:00
|
|
|
six flask pygments dulwich httpauth humanize
|
|
|
|
];
|
|
|
|
|
2019-12-26 09:20:00 +00:00
|
|
|
checkInputs = [
|
2018-03-18 11:25:09 +00:00
|
|
|
pytest requests python-ctags3
|
|
|
|
] ++ lib.optional (!isPy3k) mock;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
./runtests.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Needs to set up some git repos
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The first Git web viewer that Just Works";
|
|
|
|
homepage = https://github.com/jonashaag/klaus;
|
|
|
|
license = licenses.isc;
|
2018-07-08 19:13:52 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2018-03-18 11:25:09 +00:00
|
|
|
};
|
|
|
|
}
|