nixpkgs-suyu/pkgs/tools/misc/trac/default.nix

57 lines
1.1 KiB
Nix
Raw Normal View History

2019-11-01 18:20:52 +01:00
{ lib
, buildPythonApplication
, fetchPypi
, Babel
, docutils
, pygments
, pytz
, jinja2
, pysqlite
, psycopg2
, pymysql
, git
, setuptools
}:
buildPythonApplication rec {
pname = "trac";
2020-02-21 19:56:01 +01:00
version = "1.4.1";
2019-11-01 18:20:52 +01:00
src = fetchPypi {
inherit version;
pname = "Trac";
2020-02-21 19:56:01 +01:00
sha256 = "0d61ypn0j9wb8119bj3pj7s8swfjykdl0sz398p92k9bvxh4dayz";
2019-11-01 18:20:52 +01:00
};
prePatch = ''
# Removing the date format tests as they are outdated
substituteInPlace trac/util/tests/__init__.py \
--replace "suite.addTest(datefmt.test_suite())" ""
2020-02-01 18:18:29 +01:00
# Removing Pygments tests as per https://trac.edgewall.org/ticket/13229
substituteInPlace trac/mimeview/tests/__init__.py \
--replace "suite.addTest(pygments.test_suite())" ""
2019-11-01 18:20:52 +01:00
'';
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;
};
}