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

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

92 lines
1.9 KiB
Nix
Raw Normal View History

2022-02-25 12:19:21 +00:00
{ lib
, fetchFromGitHub
, fetchpatch
2022-02-25 12:19:21 +00:00
, python3
, makeWrapper
2022-06-24 14:15:53 +00:00
, nixosTests
2022-02-25 12:19:21 +00:00
}:
2022-01-03 20:17:46 +00:00
let
python = python3.override {
packageOverrides = self: super: {
2023-08-16 11:39:11 +00:00
django = super.django_3;
2022-01-03 20:17:46 +00:00
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "seahub";
2023-08-16 11:39:11 +00:00
version = "10.0.1";
2023-09-09 00:47:31 +00:00
pyproject = false;
2022-01-03 20:17:46 +00:00
src = fetchFromGitHub {
owner = "haiwen";
repo = "seahub";
2023-08-16 11:39:11 +00:00
rev = "e8c02236c0eaca6dde009872745f089da4b77e6e"; # using a fixed revision because upstream may re-tag releases :/
sha256 = "sha256-7JXWKEFqCsC+ZByhvyP8AmDpajT3hpgyYDNUqc3wXyg=";
2022-01-03 20:17:46 +00:00
};
patches = [
(fetchpatch {
# PIL update fix
url = "https://patch-diff.githubusercontent.com/raw/haiwen/seahub/pull/5570.patch";
sha256 = "sha256-7V2aRlacJ7Qhdi9k4Bs+t/Emx+EAM/NNCI+K40bMwLA=";
})
];
2022-01-03 20:17:46 +00:00
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-compressor
2022-01-03 20:17:46 +00:00
django-statici18n
django-webpack-loader
django-simple-captcha
django-picklefield
django-formtools
mysqlclient
pillow
python-dateutil
djangorestframework
openpyxl
requests
2022-02-25 12:19:21 +00:00
requests-oauthlib
2022-06-23 17:13:30 +00:00
chardet
2022-01-03 20:17:46 +00:00
pyjwt
pycryptodome
qrcode
pysearpc
seaserv
gunicorn
2023-02-25 10:58:47 +00:00
markdown
bleach
2022-01-03 20:17:46 +00:00
];
installPhase = ''
cp -dr --no-preserve='ownership' . $out/
wrapProgram $out/manage.py \
--prefix PYTHONPATH : "$PYTHONPATH:$out/thirdpart:"
'';
passthru = {
inherit python;
pythonPath = python.pkgs.makePythonPath propagatedBuildInputs;
2022-06-24 14:15:53 +00:00
tests = {
inherit (nixosTests) seafile;
};
2022-01-03 20:17:46 +00:00
};
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
};
}