nixpkgs/pkgs/by-name/se/seahub/package.nix

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

89 lines
1.9 KiB
Nix
Raw Normal View History

2024-09-27 23:57:15 +00:00
{
lib,
fetchFromGitHub,
python3,
makeWrapper,
nixosTests,
seafile-server,
2022-02-25 12:19:21 +00:00
}:
2024-09-27 23:57:15 +00:00
python3.pkgs.buildPythonApplication rec {
2022-01-03 20:17:46 +00:00
pname = "seahub";
2024-09-27 23:57:15 +00:00
version = "11.0.12";
2023-09-09 00:47:31 +00:00
pyproject = false;
2022-01-03 20:17:46 +00:00
src = fetchFromGitHub {
owner = "haiwen";
repo = "seahub";
2024-09-27 23:57:15 +00:00
rev = "d998361dd890cac3f6d6ebec3af47a589e0332bc"; # using a fixed revision because upstream may re-tag releases :/
hash = "sha256-n56sRZ9TVb37JA0+12ZoF2Mt7dADjaYk7V0PmdBY0EU=";
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
2024-09-27 23:57:15 +00:00
nativeBuildInputs = [ makeWrapper ];
2022-01-03 20:17:46 +00:00
2024-09-27 23:57:15 +00:00
propagatedBuildInputs = with python3.pkgs; [
2022-01-03 20:17:46 +00:00
django
future
django-compressor
2022-01-03 20:17:46 +00:00
django-statici18n
django-webpack-loader
django-simple-captcha
django-picklefield
django-formtools
2024-09-27 23:57:15 +00:00
djangosaml2
2022-01-03 20:17:46 +00:00
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
2024-09-27 23:57:15 +00:00
pyopenssl
python-ldap
2022-01-03 20:17:46 +00:00
qrcode
pysearpc
gunicorn
2023-02-25 10:58:47 +00:00
markdown
bleach
2024-09-27 23:57:15 +00:00
(python3.pkgs.toPythonModule (seafile-server.override { inherit python3; }))
2022-01-03 20:17:46 +00:00
];
2024-09-27 23:57:15 +00:00
postPatch = ''
substituteInPlace seahub/settings.py --replace-fail "SEAFILE_VERSION = '6.3.3'" "SEAFILE_VERSION = '${version}'"
'';
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 = {
2024-09-27 23:57:15 +00:00
inherit python3;
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
2022-06-24 14:15:53 +00:00
tests = {
inherit (nixosTests) seafile;
};
2024-09-27 23:57:15 +00:00
inherit seafile-server;
2022-01-03 20:17:46 +00:00
};
meta = with lib; {
description = "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;
2024-09-27 23:57:15 +00:00
maintainers = with maintainers; [
greizgh
schmittlauch
melvyn2
];
2022-02-25 12:19:21 +00:00
platforms = platforms.linux;
2022-01-03 20:17:46 +00:00
};
}