at 22.05-pre 1.4 kB view raw
1{ lib, fetchFromGitHub, python3Packages, makeWrapper }: 2 3python3Packages.buildPythonPackage rec { 4 pname = "seahub"; 5 version = "8.0.7"; 6 7 src = fetchFromGitHub { 8 owner = "haiwen"; 9 repo = "seahub"; 10 rev = "4f7bb3f617dd847cf0a6b33c0bfb567b44c06059"; # using a fixed revision because upstream may re-tag releases :/ 11 sha256 = "09d05sxly1bljxxzm77limhwsbg8c4b54fzv3kmaih59pjnjyr03"; 12 }; 13 14 dontBuild = true; 15 doCheck = false; # disabled because it requires a ccnet environment 16 17 nativeBuildInputs = [ makeWrapper ]; 18 19 propagatedBuildInputs = with python3Packages; [ 20 django 21 future 22 django-statici18n 23 django-webpack-loader 24 django-simple-captcha 25 django-picklefield 26 django-formtools 27 mysqlclient 28 pillow 29 python-dateutil 30 django_compressor 31 djangorestframework 32 openpyxl 33 requests 34 requests_oauthlib 35 pyjwt 36 pycryptodome 37 qrcode 38 pysearpc 39 seaserv 40 ]; 41 42 installPhase = '' 43 cp -dr --no-preserve='ownership' . $out/ 44 wrapProgram $out/manage.py \ 45 --prefix PYTHONPATH : "$PYTHONPATH:$out/thirdpart:" \ 46 --prefix PATH : "${python3Packages.python}/bin" 47 ''; 48 49 meta = with lib; { 50 homepage = "https://github.com/haiwen/seahub"; 51 description = "The web end of seafile server"; 52 license = licenses.asl20; 53 platforms = platforms.linux; 54 maintainers = with maintainers; [ greizgh schmittlauch ]; 55 }; 56}