5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
40 lines
984 B
Nix
40 lines
984 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, flask, pygments, dulwich, httpauth, humanize, pytest, requests, python-ctags3, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "klaus";
|
|
version = "2.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jonashaag";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-a0MbKjDqPSMakjmGS5gfaDaPegQpK4QA+ZdG7skd9QU=";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace runtests.sh \
|
|
--replace "mkdir -p \$builddir" "mkdir -p \$builddir && pwd"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
flask pygments dulwich httpauth humanize
|
|
];
|
|
|
|
checkInputs = [
|
|
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;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|