13 stdenv.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
20 rev = "pynac-${finalAttrs.version}";
21 hash = "sha256-ocR7emXtKs+Xe2f6dh4xEDAacgiolY8mtlLnWnNBS8A=";
25 # the patch below is included in sage 9.4 and should be included
26 # in a future pynac release. see https://trac.sagemath.org/ticket/28357
28 name = "realpartloop.patch";
29 url = "https://git.sagemath.org/sage.git/plain/build/pkgs/pynac/patches/realpartloop.patch?h=9.4.beta5";
30 hash = "sha256-1nj0xtlFN5fZKEiRLD+tiW/ZtxMQre1ziEGA0OVUGE4=";
34 # Python 3.11 moved this header file, but is now is imported by default
36 substituteInPlace ginac/numeric.cpp \
37 --replace-fail "#include <longintrepr.h>" ""
54 description = "Python is Not a CAS -- modified version of Ginac";
56 Pynac -- "Python is Not a CAS" is a modified version of Ginac that
57 replaces the depency of GiNaC on CLN by a dependency instead of Python.
58 It is a lite version of GiNaC as well, not implementing all the features
59 of the full GiNaC, and it is *only* meant to be used as a Python library.
61 homepage = "http://pynac.org";
62 license = licenses.gpl2Plus;
63 maintainers = teams.sage.members;
64 platforms = platforms.unix;