summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-autoindex/default.nix
blob: 95e457de81d3952969c189103c9848e82094cf34 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
{ stdenv
, buildPythonPackage
, fetchpatch
, fetchPypi
, flask
, flask-silk
, future
}:

buildPythonPackage rec {
  pname = "Flask-AutoIndex";
  version = "0.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "19b10mb1nrqfjyafki6wnrbn8mqi30bbyyiyvp5xssc74pciyfqs";
  };

  propagatedBuildInputs = [
    flask
    flask-silk
    future
  ];

  patches = [
    # fix generated binary, see https://github.com/sublee/flask-autoindex/pull/32
    (fetchpatch {
      name = "fix_binary.patch";
      url = "https://github.com/sublee/flask-autoindex/pull/32.patch";
      sha256 = "1v2r0wvi7prhipjq89774svv6aqj0a13mdfj07pdlkpzfbf029dn";
    })
  ];

  meta = with stdenv.lib; {
    description = "The mod_autoindex for Flask";
    longDescription = ''
      Flask-AutoIndex generates an index page for your Flask application automatically.
      The result is just like mod_autoindex, but the look is more awesome!
    '';
    license = licenses.bsd2;
    maintainers = with maintainers; [ timokau ];
    homepage = https://pythonhosted.org/Flask-AutoIndex/;
  };
}