seahub: init at 8.0.7

This commit is contained in:
Greizgh 2021-04-20 20:05:46 +02:00
parent 32e6d672bc
commit 22ecb14d70
No known key found for this signature in database
GPG Key ID: 68B0B42612A108B2
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ stdenv, lib, fetchFromGitHub, python3Packages, makeWrapper }:
python3Packages.buildPythonPackage rec {
pname = "seahub";
version = "8.0.7";
src = fetchFromGitHub {
owner = "haiwen";
repo = "seahub";
rev = "4f7bb3f617dd847cf0a6b33c0bfb567b44c06059"; # using a fixed revision because upstream may re-tag releases :/
sha256 = "09d05sxly1bljxxzm77limhwsbg8c4b54fzv3kmaih59pjnjyr03";
};
dontBuild = true;
doCheck = false; # disabled because it requires a ccnet environment
nativeBuildInputs = [ makeWrapper ];
propagatedBuildInputs = with python3Packages; [
django
future
django-statici18n
django-webpack-loader
django-simple-captcha
django-picklefield
django-formtools
mysqlclient
pillow
python-dateutil
django_compressor
djangorestframework
openpyxl
requests
requests_oauthlib
pyjwt
pycryptodome
qrcode
pysearpc
seaserv
];
installPhase = ''
cp -dr --no-preserve='ownership' . $out/
wrapProgram $out/manage.py \
--prefix PYTHONPATH : "$PYTHONPATH:$out/thirdpart:" \
--prefix PATH : "${python3Packages.python}/bin"
'';
meta = with lib; {
homepage = "https://github.com/haiwen/seahub";
description = "The web end of seafile server";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ greizgh schmittlauch ];
};
}

View File

@ -8317,6 +8317,8 @@ in {
seabreeze = callPackage ../development/python-modules/seabreeze { };
seahub = callPackage ../development/python-modules/seahub { };
seaserv = toPythonModule pkgs.seafile-server;
seccomp = callPackage ../development/python-modules/seccomp { };