1{
2 buildOctavePackage,
3 lib,
4 fetchFromGitHub,
5 # Octave's Python (Python 3)
6 python,
7}:
8
9let
10 pythonEnv = python.withPackages (ps: [
11 ps.sympy
12 ps.mpmath
13 ]);
14
15in
16buildOctavePackage rec {
17 pname = "symbolic";
18 version = "3.2.1";
19
20 src = fetchFromGitHub {
21 owner = "cbm755";
22 repo = "octsympy";
23 tag = "v${version}";
24 hash = "sha256-H2242+1zlke4aLoS3gsHpDfopM5oSZ4IpVR3+xxQ0Dc=";
25 };
26
27 propagatedBuildInputs = [ pythonEnv ];
28
29 meta = {
30 homepage = "https://gnu-octave.github.io/packages/symbolic/";
31 license = lib.licenses.gpl3Plus;
32 maintainers = with lib.maintainers; [ KarlJoad ];
33 description = "Adds symbolic calculation features to GNU Octave";
34 };
35}