2018-03-18 11:25:09 +00:00
|
|
|
{ lib, python, fetchFromGitHub }:
|
|
|
|
|
2018-06-04 01:57:14 +01:00
|
|
|
python.pkgs.buildPythonPackage rec {
|
2018-03-18 11:25:09 +00:00
|
|
|
pname = "klaus";
|
2018-07-08 20:13:52 +01:00
|
|
|
version = "1.3.0";
|
2018-03-18 11:25:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jonashaag";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-07-08 20:39:38 +01:00
|
|
|
sha256 = "04zjvrpx66x2c0v74nvmq8x7s7c8994cv1zwd5hfn9alq82hqcgr";
|
2018-03-18 11:25:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace runtests.sh \
|
|
|
|
--replace "mkdir -p \$builddir" "mkdir -p \$builddir && pwd"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
six flask pygments dulwich httpauth humanize
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python.pkgs; [
|
|
|
|
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 20:13:52 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2018-03-18 11:25:09 +00:00
|
|
|
};
|
|
|
|
}
|