mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: Add python-mathics-django.
* gnu/packages/maths.scm (python-mathics-django): New variable. Change-Id: I9f928a13e07f4fc680a6d0e3e965a72d45d7d80c
This commit is contained in:
parent
942dd1700d
commit
8b65fdc182
1 changed files with 33 additions and 0 deletions
|
@ -125,6 +125,7 @@ (define-module (gnu packages maths)
|
|||
#:use-module (gnu packages datamash)
|
||||
#:use-module (gnu packages dbm)
|
||||
#:use-module (gnu packages documentation)
|
||||
#:use-module (gnu packages django)
|
||||
#:use-module (gnu packages elf)
|
||||
#:use-module (gnu packages emacs)
|
||||
#:use-module (gnu packages file)
|
||||
|
@ -10609,3 +10610,35 @@ (define-public python-mathicsscript
|
|||
(description "This package provides a command-line interface to
|
||||
Mathics3.")
|
||||
(license license:gpl3)))
|
||||
|
||||
(define-public python-mathics-django
|
||||
(package
|
||||
(name "python-mathics-django")
|
||||
(version "7.0.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "Mathics-Django" version))
|
||||
(sha256
|
||||
(base32 "02ccq0kx9i9b339p48j6xixr5wqj58dp8rhcik07b7vrfvznnxdi"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'check)
|
||||
(add-after 'build 'check
|
||||
(lambda _
|
||||
(setenv "PYTHONPATH" (getcwd))
|
||||
(setenv "DJANGO_SETTINGS_MODULE" "mathics_django.settings")
|
||||
(invoke "django-admin" "test"))))))
|
||||
(native-inputs (list python-pytest))
|
||||
(propagated-inputs (list python-django-4.2
|
||||
python-mathics-scanner
|
||||
python-mathics-core
|
||||
python-networkx-next
|
||||
python-pygments
|
||||
python-requests))
|
||||
(home-page "https://mathics.org/")
|
||||
(synopsis "A Django front end for Mathics3.")
|
||||
(description "This package provides a Django front end for Mathics3.")
|
||||
(license license:gpl3)))
|
||||
|
|
Loading…
Reference in a new issue