trac, nixos/trac: remove

They have been broken for multiple releases.
This commit is contained in:
Robert Schütz 2021-12-31 08:54:16 +00:00 committed by Martin Weinelt
parent de8b43a2e2
commit a859ef91f0
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
6 changed files with 0 additions and 158 deletions

View file

@ -1034,7 +1034,6 @@
./services/web-apps/sogo.nix
./services/web-apps/rss-bridge.nix
./services/web-apps/tt-rss.nix
./services/web-apps/trac.nix
./services/web-apps/trilium.nix
./services/web-apps/selfoss.nix
./services/web-apps/shiori.nix

View file

@ -1,79 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.services.trac;
inherit (lib) mkEnableOption mkIf mkOption types;
in {
options = {
services.trac = {
enable = mkEnableOption "Trac service";
listen = {
ip = mkOption {
type = types.str;
default = "0.0.0.0";
description = ''
IP address that Trac should listen on.
'';
};
port = mkOption {
type = types.port;
default = 8000;
description = ''
Listen port for Trac.
'';
};
};
dataDir = mkOption {
default = "/var/lib/trac";
type = types.path;
description = ''
The directory for storing the Trac data.
'';
};
openFirewall = mkOption {
type = types.bool;
default = false;
description = ''
Open ports in the firewall for Trac.
'';
};
};
};
config = mkIf cfg.enable {
systemd.services.trac = {
description = "Trac server";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
DynamicUser = true;
StateDirectory = baseNameOf cfg.dataDir;
ExecStart = ''
${pkgs.trac}/bin/tracd -s \
-b ${toString cfg.listen.ip} \
-p ${toString cfg.listen.port} \
${cfg.dataDir}
'';
};
preStart = ''
if [ ! -e ${cfg.dataDir}/VERSION ]; then
${pkgs.trac}/bin/trac-admin ${cfg.dataDir} initenv Trac "sqlite:db/trac.db"
fi
'';
};
networking.firewall = mkIf cfg.openFirewall {
allowedTCPPorts = [ cfg.listen.port ];
};
};
}

View file

@ -475,7 +475,6 @@ in
tinc = handleTest ./tinc {};
tinydns = handleTest ./tinydns.nix {};
tor = handleTest ./tor.nix {};
trac = handleTest ./trac.nix {};
# traefik test relies on docker-containers
traefik = handleTestOn ["x86_64-linux"] ./traefik.nix {};
trafficserver = handleTest ./trafficserver.nix {};

View file

@ -1,19 +0,0 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "trac";
meta = with pkgs.lib.maintainers; {
maintainers = [ mmahut ];
};
nodes = {
machine = { ... }: {
services.trac.enable = true;
};
};
testScript = ''
start_all()
machine.wait_for_unit("trac.service")
machine.wait_for_open_port(8000)
machine.wait_until_succeeds("curl -fL http://localhost:8000/ | grep 'Trac Powered'")
'';
})

View file

@ -1,56 +0,0 @@
{ 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;
};
}

View file

@ -4946,8 +4946,6 @@ with pkgs;
tsm-client = callPackage ../tools/backup/tsm-client { jdk8 = null; };
tsm-client-withGui = callPackage ../tools/backup/tsm-client { };
trac = pythonPackages.callPackage ../tools/misc/trac { };
tracker = callPackage ../development/libraries/tracker { };
tracker-miners = callPackage ../development/libraries/tracker-miners { };