diff options
author | Aneesh Agrawal <aneeshusa@gmail.com> | 2018-06-03 17:57:14 -0700 |
---|---|---|
committer | Aneesh Agrawal <aneeshusa@gmail.com> | 2018-06-13 22:47:48 -0700 |
commit | 4bba2bd98e8a8c5172c45f508df95242b9c6da86 (patch) | |
tree | eed19bace86b1112efe35f29487faef7dfdaee13 /pkgs/development/python-modules/klaus | |
parent | c2ab820d6aeafeeb02f748e47a5e140170775f77 (diff) | |
download | nixlib-4bba2bd98e8a8c5172c45f508df95242b9c6da86.tar nixlib-4bba2bd98e8a8c5172c45f508df95242b9c6da86.tar.gz nixlib-4bba2bd98e8a8c5172c45f508df95242b9c6da86.tar.bz2 nixlib-4bba2bd98e8a8c5172c45f508df95242b9c6da86.tar.lz nixlib-4bba2bd98e8a8c5172c45f508df95242b9c6da86.tar.xz nixlib-4bba2bd98e8a8c5172c45f508df95242b9c6da86.tar.zst nixlib-4bba2bd98e8a8c5172c45f508df95242b9c6da86.zip |
klaus: make available as a python package
This makes it usable via WSGI.
Diffstat (limited to 'pkgs/development/python-modules/klaus')
-rw-r--r-- | pkgs/development/python-modules/klaus/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/klaus/default.nix b/pkgs/development/python-modules/klaus/default.nix new file mode 100644 index 000000000000..0740cfa84bb7 --- /dev/null +++ b/pkgs/development/python-modules/klaus/default.nix @@ -0,0 +1,40 @@ +{ lib, python, fetchFromGitHub }: + +python.pkgs.buildPythonPackage rec { + pname = "klaus"; + version = "1.2.2"; + + src = fetchFromGitHub { + owner = "jonashaag"; + repo = pname; + rev = version; + sha256 = "0hkl1ycyd5ccijmknr3yfp3ga43y01m7390xnibqqgaisfvcm9wp"; + }; + + 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; + maintainers = with maintainers; [ ]; + }; +} |