I’m trying to bring Mathics back to life. So I created the following package:
{ lib, pkgs, fetchFromGitHub
, python3Packages
}:
python3Packages.buildPythonApplication rec {
name = "mathics-${version}";
version = "1.0";
src = fetchFromGitHub {
owner = "suhr";
repo = "Mathics";
rev = "61d603bce91c8c55d70b8b5b76cfcea2a2d8693a";
sha256 = "0d7l1k3va2axg4hl0ckvjfz4sgdgw7brnlhfybgv99shzm25irp4";
};
propagatedBuildInputs = with python3Packages; [
sympy numpy pexpect django_1_11 mpmath dateutil colorama six
];
doCheck = true;
meta = {
broken = true;
description = "A free, light-weight alternative to Mathematica";
homepage = https://mathics.github.io/;
license = lib.licenses.gpl3;
maintainers = [ ];
};
}
But then I get this issue:
% ./result/bin/mathicsserver ~/Projects/nur-packages
warning: database file /home/suhr/.local/var/mathics/mathics.sqlite not found
Creating database /home/suhr/.local/var/mathics/mathics.sqlite
Traceback (most recent call last):
File "/nix/store/57s7dcw2rkggaiq4dmi5kqs5gr0166b3-mathics-1.0/lib/python3.7/site-packages/mathics/manage.py", line 13, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
error: failed to create database
Now do I fix the package so mathics could import django?