nixpkgs/pkgs/applications/networking/seahub/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.9 KiB
Nix
Raw Normal View History

2022-02-25 12:19:21 +00:00
{ lib
, fetchFromGitHub
, python3
, makeWrapper
}:
2022-01-03 20:17:46 +00:00
let
# Seahub 8.x.x does not support django-webpack-loader >=1.x.x
python = python3.override {
packageOverrides = self: super: {
django-webpack-loader = super.django-webpack-loader.overridePythonAttrs (old: rec {
version = "0.7.0";
src = old.src.override {
inherit version;
sha256 = "0izl6bibhz3v538ad5hl13lfr6kvprf62rcl77wq2i5538h8hg3s";
};
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "seahub";
version = "8.0.8";
src = fetchFromGitHub {
owner = "haiwen";
repo = "seahub";
rev = "c51346155b2f31e038c3a2a12e69dcc6665502e2"; # using a fixed revision because upstream may re-tag releases :/
sha256 = "0dagiifxllfk73xdzfw2g378jccpzplhdrmkwbaakbhgbvvkg92k";
};
dontBuild = true;
2022-02-25 12:19:21 +00:00
2022-01-03 20:17:46 +00:00
doCheck = false; # disabled because it requires a ccnet environment
2022-02-25 12:19:21 +00:00
nativeBuildInputs = [
makeWrapper
];
2022-01-03 20:17:46 +00:00
propagatedBuildInputs = with python.pkgs; [
django
future
django-statici18n
django-webpack-loader
django-simple-captcha
django-picklefield
django-formtools
mysqlclient
pillow
python-dateutil
django_compressor
djangorestframework
openpyxl
requests
2022-02-25 12:19:21 +00:00
requests-oauthlib
2022-01-03 20:17:46 +00:00
pyjwt
pycryptodome
qrcode
pysearpc
seaserv
gunicorn
];
installPhase = ''
cp -dr --no-preserve='ownership' . $out/
wrapProgram $out/manage.py \
--prefix PYTHONPATH : "$PYTHONPATH:$out/thirdpart:"
'';
passthru = {
inherit python;
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
};
meta = with lib; {
description = "The web end of seafile server";
2022-02-25 12:19:21 +00:00
homepage = "https://github.com/haiwen/seahub";
2022-01-03 20:17:46 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ greizgh schmittlauch ];
2022-02-25 12:19:21 +00:00
platforms = platforms.linux;
2022-01-03 20:17:46 +00:00
};
}