evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / se / seahub / package.nix
blobb1df123cd81476f627fce5e9a7f6b2568d124420
2   lib,
3   fetchFromGitHub,
4   python3,
5   makeWrapper,
6   nixosTests,
7   seafile-server,
8 }:
9 python3.pkgs.buildPythonApplication rec {
10   pname = "seahub";
11   version = "11.0.12";
12   pyproject = false;
14   src = fetchFromGitHub {
15     owner = "haiwen";
16     repo = "seahub";
17     rev = "d998361dd890cac3f6d6ebec3af47a589e0332bc"; # using a fixed revision because upstream may re-tag releases :/
18     hash = "sha256-n56sRZ9TVb37JA0+12ZoF2Mt7dADjaYk7V0PmdBY0EU=";
19   };
21   dontBuild = true;
23   doCheck = false; # disabled because it requires a ccnet environment
25   nativeBuildInputs = [ makeWrapper ];
27   propagatedBuildInputs = with python3.pkgs; [
28     django
29     future
30     django-compressor
31     django-statici18n
32     django-webpack-loader
33     django-simple-captcha
34     django-picklefield
35     django-formtools
36     djangosaml2
37     mysqlclient
38     pillow
39     python-dateutil
40     djangorestframework
41     openpyxl
42     requests
43     requests-oauthlib
44     chardet
45     pyjwt
46     pycryptodome
47     pyopenssl
48     python-ldap
49     qrcode
50     pysearpc
51     gunicorn
52     markdown
53     bleach
55     (python3.pkgs.toPythonModule (seafile-server.override { inherit python3; }))
56   ];
58   postPatch = ''
59     substituteInPlace seahub/settings.py --replace-fail "SEAFILE_VERSION = '6.3.3'" "SEAFILE_VERSION = '${version}'"
60   '';
62   installPhase = ''
63     cp -dr --no-preserve='ownership' . $out/
64     wrapProgram $out/manage.py \
65       --prefix PYTHONPATH : "$PYTHONPATH:$out/thirdpart:"
66   '';
68   passthru = {
69     inherit python3;
70     pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
71     tests = {
72       inherit (nixosTests) seafile;
73     };
74     inherit seafile-server;
75   };
77   meta = with lib; {
78     description = "Web end of seafile server";
79     homepage = "https://github.com/haiwen/seahub";
80     license = licenses.asl20;
81     maintainers = with maintainers; [
82       greizgh
83       schmittlauch
84       melvyn2
85     ];
86     platforms = platforms.linux;
87   };