Merge pull request #95505 from flokli/remove-mathics
mathics: remove package, module and test
This commit is contained in:
commit
16fc531784
@ -247,7 +247,7 @@ in
|
|||||||
bepasty = 215;
|
bepasty = 215;
|
||||||
# pumpio = 216; # unused, removed 2018-02-24
|
# pumpio = 216; # unused, removed 2018-02-24
|
||||||
nm-openvpn = 217;
|
nm-openvpn = 217;
|
||||||
mathics = 218;
|
# mathics = 218; # unused, removed 2020-08-15
|
||||||
ejabberd = 219;
|
ejabberd = 219;
|
||||||
postsrsd = 220;
|
postsrsd = 220;
|
||||||
opendkim = 221;
|
opendkim = 221;
|
||||||
|
@ -466,7 +466,6 @@
|
|||||||
./services/misc/leaps.nix
|
./services/misc/leaps.nix
|
||||||
./services/misc/lidarr.nix
|
./services/misc/lidarr.nix
|
||||||
./services/misc/mame.nix
|
./services/misc/mame.nix
|
||||||
./services/misc/mathics.nix
|
|
||||||
./services/misc/matrix-appservice-discord.nix
|
./services/misc/matrix-appservice-discord.nix
|
||||||
./services/misc/matrix-synapse.nix
|
./services/misc/matrix-synapse.nix
|
||||||
./services/misc/mautrix-telegram.nix
|
./services/misc/mautrix-telegram.nix
|
||||||
|
@ -31,6 +31,7 @@ with lib;
|
|||||||
(mkRemovedOptionModule [ "services" "osquery" ] "The osquery module has been removed")
|
(mkRemovedOptionModule [ "services" "osquery" ] "The osquery module has been removed")
|
||||||
(mkRemovedOptionModule [ "services" "fourStore" ] "The fourStore module has been removed")
|
(mkRemovedOptionModule [ "services" "fourStore" ] "The fourStore module has been removed")
|
||||||
(mkRemovedOptionModule [ "services" "fourStoreEndpoint" ] "The fourStoreEndpoint module has been removed")
|
(mkRemovedOptionModule [ "services" "fourStoreEndpoint" ] "The fourStoreEndpoint module has been removed")
|
||||||
|
(mkRemovedOptionModule [ "services" "mathics" ] "The Mathics module has been removed")
|
||||||
(mkRemovedOptionModule [ "programs" "way-cooler" ] ("way-cooler is abandoned by its author: " +
|
(mkRemovedOptionModule [ "programs" "way-cooler" ] ("way-cooler is abandoned by its author: " +
|
||||||
"https://way-cooler.org/blog/2020/01/09/way-cooler-post-mortem.html"))
|
"https://way-cooler.org/blog/2020/01/09/way-cooler-post-mortem.html"))
|
||||||
(mkRemovedOptionModule [ "services" "xserver" "multitouch" ] ''
|
(mkRemovedOptionModule [ "services" "xserver" "multitouch" ] ''
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
{ pkgs, lib, config, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.services.mathics;
|
|
||||||
|
|
||||||
in {
|
|
||||||
options = {
|
|
||||||
services.mathics = {
|
|
||||||
enable = mkEnableOption "Mathics notebook service";
|
|
||||||
|
|
||||||
external = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Listen on all interfaces, rather than just localhost?";
|
|
||||||
};
|
|
||||||
|
|
||||||
port = mkOption {
|
|
||||||
type = types.int;
|
|
||||||
default = 8000;
|
|
||||||
description = "TCP port to listen on.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
|
|
||||||
users.users.mathics = {
|
|
||||||
group = config.users.groups.mathics.name;
|
|
||||||
description = "Mathics user";
|
|
||||||
home = "/var/lib/mathics";
|
|
||||||
createHome = true;
|
|
||||||
uid = config.ids.uids.mathics;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.groups.mathics.gid = config.ids.gids.mathics;
|
|
||||||
|
|
||||||
systemd.services.mathics = {
|
|
||||||
description = "Mathics notebook server";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
after = [ "network.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
User = config.users.users.mathics.name;
|
|
||||||
Group = config.users.groups.mathics.name;
|
|
||||||
ExecStart = concatStringsSep " " [
|
|
||||||
"${pkgs.mathics}/bin/mathicsserver"
|
|
||||||
"--port" (toString cfg.port)
|
|
||||||
(if cfg.external then "--external" else "")
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -195,7 +195,6 @@ in
|
|||||||
mailcatcher = handleTest ./mailcatcher.nix {};
|
mailcatcher = handleTest ./mailcatcher.nix {};
|
||||||
mariadb-galera-mariabackup = handleTest ./mysql/mariadb-galera-mariabackup.nix {};
|
mariadb-galera-mariabackup = handleTest ./mysql/mariadb-galera-mariabackup.nix {};
|
||||||
mariadb-galera-rsync = handleTest ./mysql/mariadb-galera-rsync.nix {};
|
mariadb-galera-rsync = handleTest ./mysql/mariadb-galera-rsync.nix {};
|
||||||
mathics = handleTest ./mathics.nix {};
|
|
||||||
matomo = handleTest ./matomo.nix {};
|
matomo = handleTest ./matomo.nix {};
|
||||||
matrix-synapse = handleTest ./matrix-synapse.nix {};
|
matrix-synapse = handleTest ./matrix-synapse.nix {};
|
||||||
mediawiki = handleTest ./mediawiki.nix {};
|
mediawiki = handleTest ./mediawiki.nix {};
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
import ./make-test.nix ({ pkgs, ... }: {
|
|
||||||
name = "mathics";
|
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
|
||||||
maintainers = [ benley ];
|
|
||||||
};
|
|
||||||
|
|
||||||
nodes = {
|
|
||||||
machine = { ... }: {
|
|
||||||
services.mathics.enable = true;
|
|
||||||
services.mathics.port = 8888;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
startAll;
|
|
||||||
$machine->waitForUnit("mathics.service");
|
|
||||||
$machine->waitForOpenPort(8888);
|
|
||||||
$machine->succeed("curl http://localhost:8888/");
|
|
||||||
'';
|
|
||||||
})
|
|
@ -1,50 +0,0 @@
|
|||||||
{ stdenv
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchFromGitHub
|
|
||||||
, django
|
|
||||||
, python
|
|
||||||
, cython
|
|
||||||
, sympy
|
|
||||||
, ply
|
|
||||||
, mpmath
|
|
||||||
, dateutil
|
|
||||||
, colorama
|
|
||||||
, six
|
|
||||||
, pexpect
|
|
||||||
}:
|
|
||||||
|
|
||||||
if (stdenv.lib.versionOlder django.version "1.8") ||
|
|
||||||
(stdenv.lib.versionAtLeast django.version "1.9")
|
|
||||||
then throw "mathics only supports django-1.8.x"
|
|
||||||
else buildPythonPackage rec {
|
|
||||||
pname = "mathics";
|
|
||||||
version = "0.9";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "mathics";
|
|
||||||
repo = "Mathics";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0xzz7j8xskj5y6as178mjmm0i2xbhd4q4mwmdnvghpd2aqq3qx1c";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ pexpect ];
|
|
||||||
|
|
||||||
prePatch = ''
|
|
||||||
substituteInPlace setup.py --replace "sympy==0.7.6" "sympy"
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
wrapPythonProgramsIn $out/bin $out
|
|
||||||
patchPythonScript $out/${python.sitePackages}/mathics/manage.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ cython sympy django ply mpmath dateutil colorama six ];
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "A general-purpose computer algebra system";
|
|
||||||
homepage = "http://www.mathics.org";
|
|
||||||
license = licenses.gpl3;
|
|
||||||
maintainers = [ maintainers.benley ];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -285,6 +285,7 @@ mapAliases ({
|
|||||||
marathon = throw "marathon has been removed from nixpkgs, as it's unmaintained"; # added 2020-08-15
|
marathon = throw "marathon has been removed from nixpkgs, as it's unmaintained"; # added 2020-08-15
|
||||||
mariadb-client = hiPrio mariadb.client; #added 2019.07.28
|
mariadb-client = hiPrio mariadb.client; #added 2019.07.28
|
||||||
matcha = throw "matcha was renamed to matcha-gtk-theme"; # added 2020-05-09
|
matcha = throw "matcha was renamed to matcha-gtk-theme"; # added 2020-05-09
|
||||||
|
mathics = throw "mathics has been removed from nixpkgs, as it's unmaintained"; # added 2020-08-15
|
||||||
matrique = spectral; # added 2020-01-27
|
matrique = spectral; # added 2020-01-27
|
||||||
mbedtls_1_3 = throw "mbedtls_1_3 is end of life, see https://tls.mbed.org/kb/how-to/upgrade-2.0"; # added 2019-12-08
|
mbedtls_1_3 = throw "mbedtls_1_3 is end of life, see https://tls.mbed.org/kb/how-to/upgrade-2.0"; # added 2019-12-08
|
||||||
mess = mame; # added 2019-10-30
|
mess = mame; # added 2019-10-30
|
||||||
|
@ -2114,8 +2114,6 @@ in
|
|||||||
|
|
||||||
marlin-calc = callPackage ../tools/misc/marlin-calc {};
|
marlin-calc = callPackage ../tools/misc/marlin-calc {};
|
||||||
|
|
||||||
mathics = with python2Packages; toPythonApplication mathics;
|
|
||||||
|
|
||||||
masscan = callPackage ../tools/security/masscan {
|
masscan = callPackage ../tools/security/masscan {
|
||||||
stdenv = gccStdenv;
|
stdenv = gccStdenv;
|
||||||
};
|
};
|
||||||
|
@ -4742,8 +4742,6 @@ in {
|
|||||||
|
|
||||||
markdown-macros = callPackage ../development/python-modules/markdown-macros { };
|
markdown-macros = callPackage ../development/python-modules/markdown-macros { };
|
||||||
|
|
||||||
mathics = callPackage ../development/python-modules/mathics { };
|
|
||||||
|
|
||||||
matplotlib = let
|
matplotlib = let
|
||||||
path = if isPy3k then ../development/python-modules/matplotlib/default.nix else
|
path = if isPy3k then ../development/python-modules/matplotlib/default.nix else
|
||||||
../development/python-modules/matplotlib/2.nix;
|
../development/python-modules/matplotlib/2.nix;
|
||||||
|
Loading…
Reference in New Issue
Block a user