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

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

90 lines
2.0 KiB
Nix
Raw Normal View History

2022-02-25 12:19:21 +00:00
{ lib
, fetchFromGitHub
, 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
# 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;
hash = "sha256-ejyIIBqlRIH5OZRlYVy+e5rs6AgUlqbQKHt8uOIy9Ec=";
2022-01-03 20:17:46 +00:00
};
});
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "seahub";
2023-02-25 10:58:47 +00:00
version = "9.0.10";
2022-10-04 23:27:45 +00:00
format = "other";
2022-01-03 20:17:46 +00:00
src = fetchFromGitHub {
owner = "haiwen";
repo = "seahub";
2023-02-25 10:58:47 +00:00
rev = "5971bf25fe67d94ec4d9f53b785c15a098113620"; # using a fixed revision because upstream may re-tag releases :/
sha256 = "sha256-7Exvm3EShb/1EqwA4wzWB9zCdv0P/ISmjKSoqtOMnqk=";
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
};
}