2019-12-26 10:20:00 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, six, flask, pygments, dulwich, httpauth, humanize, pytest, requests, python-ctags3, mock }:
|
2018-03-18 12:25:09 +01:00
|
|
|
|
2019-12-26 10:20:00 +01:00
|
|
|
buildPythonPackage rec {
|
2018-03-18 12:25:09 +01:00
|
|
|
pname = "klaus";
|
2020-03-13 10:04:32 +01:00
|
|
|
version = "1.5.2";
|
2018-03-18 12:25:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonashaag";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-03-13 10:04:32 +01:00
|
|
|
sha256 = "12b96jgiv9y7zmkqqj3dh0fbbm3ps8gbqk925qrhh56zqjl66kx2";
|
2018-03-18 12:25:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace runtests.sh \
|
|
|
|
--replace "mkdir -p \$builddir" "mkdir -p \$builddir && pwd"
|
|
|
|
'';
|
|
|
|
|
2019-12-26 10:20:00 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-03-18 12:25:09 +01:00
|
|
|
six flask pygments dulwich httpauth humanize
|
|
|
|
];
|
|
|
|
|
2019-12-26 10:20:00 +01:00
|
|
|
checkInputs = [
|
2018-03-18 12:25:09 +01: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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jonashaag/klaus";
|
2018-03-18 12:25:09 +01:00
|
|
|
license = licenses.isc;
|
2018-07-08 21:13:52 +02:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2018-03-18 12:25:09 +01:00
|
|
|
};
|
|
|
|
}
|