2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
isPy3k,
|
|
|
|
flask,
|
|
|
|
pygments,
|
|
|
|
dulwich,
|
|
|
|
httpauth,
|
|
|
|
humanize,
|
|
|
|
pytest,
|
|
|
|
requests,
|
|
|
|
python-ctags3,
|
|
|
|
mock,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "klaus";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "3.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonashaag";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-BcLlvZ9Ip3laL0cLkqK+mhB+S7ubB4TuZ0VKXOOX3oA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace runtests.sh \
|
|
|
|
--replace "mkdir -p \$builddir" "mkdir -p \$builddir && pwd"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-06-05 15:53:02 +00:00
|
|
|
flask
|
|
|
|
pygments
|
|
|
|
dulwich
|
|
|
|
httpauth
|
|
|
|
humanize
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-06-05 15:53:02 +00:00
|
|
|
pytest
|
|
|
|
requests
|
|
|
|
python-ctags3
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ lib.optional (!isPy3k) mock;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
./runtests.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Needs to set up some git repos
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "First Git web viewer that Just Works";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "klaus";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/jonashaag/klaus";
|
|
|
|
license = licenses.isc;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|