summary refs log tree commit diff
path: root/pkgs/tools/misc/trac/default.nix
blob: 1d0f9a5d8288f27f7fe949556876c84a823d5baa (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
45
46
47
48
49
50
51
52
53
54
55
56
{ lib
, buildPythonApplication
, fetchPypi
, Babel
, docutils
, pygments
, pytz
, jinja2
, pysqlite
, psycopg2
, pymysql
, git
, setuptools
}:


buildPythonApplication rec {
  pname = "trac";
  version = "1.4.1";

  src = fetchPypi {
    inherit version;
    pname = "Trac";
    sha256 = "0d61ypn0j9wb8119bj3pj7s8swfjykdl0sz398p92k9bvxh4dayz";
  };

  prePatch = ''
    # Removing the date format tests as they are outdated
    substituteInPlace trac/util/tests/__init__.py \
      --replace "suite.addTest(datefmt.test_suite())" ""
    # Removing Pygments tests as per https://trac.edgewall.org/ticket/13229
    substituteInPlace trac/mimeview/tests/__init__.py \
      --replace "suite.addTest(pygments.test_suite())" ""
  '';

  propagatedBuildInputs = [
    Babel
    docutils
    pygments
    pytz
    jinja2
    pysqlite
    psycopg2
    pymysql
    git
    setuptools
  ];

  meta = with lib; {
    description = "Integrated SCM, wiki, issue tracker and project environment";
    homepage = "https://trac.edgewall.org/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ mmahut ];
    platforms = platforms.linux;
  };
}