summaryrefslogtreecommitdiff
path: root/ilex/uffd.nix
blob: a616b64a9bf7f8be61c9592d816e4ab536065233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, lib, python3Packages, fetchzip }:

python3Packages.buildPythonPackage rec {
  pname = "uffd";
  version = "2.0.1";

  src = fetchzip {
    url = "https://git.cccv.de/uffd/uffd/-/archive/v${version}/uffd-v${version}.tar.gz";
    hash = "sha256-KP4J1bw5u7MklaPu2SBFRNyGgkKOBOpft5MMH+em5M4=";
  };

  patches = [ ./fix-setuppy.patch ]; # ./fix-userinfo.patch ];

  propagatedBuildInputs = with python3Packages; [
    flask
    flask_sqlalchemy
    flask_migrate
    qrcode
    fido2
    oauthlib
    flask-babel
    argon2_cffi
    itsdangerous
    alembic
    Mako
  ];

  postPatch = ''
    sed -i -e 's/==[0-9.]\+//g' setup.py
  '';

  doCheck = false;
  doInstallCheck = false;
}