biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / science / math / pynac / default.nix
blob88515b92beaf61beec78dd1bf776d48f96a71993
1 { lib, stdenv
2 , fetchpatch
3 , fetchFromGitHub
4 , autoreconfHook
5 , pkg-config
6 , flint
7 , gmp
8 , python3
9 , singular
10 , ncurses
13 stdenv.mkDerivation rec {
14   version = "0.7.29";
15   pname = "pynac";
17   src = fetchFromGitHub {
18     owner = "pynac";
19     repo = "pynac";
20     rev = "pynac-${version}";
21     sha256 = "sha256-ocR7emXtKs+Xe2f6dh4xEDAacgiolY8mtlLnWnNBS8A=";
22   };
24   patches = [
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
27     (fetchpatch {
28       name = "realpartloop.patch";
29       url = "https://git.sagemath.org/sage.git/plain/build/pkgs/pynac/patches/realpartloop.patch?h=9.4.beta5";
30       sha256 = "sha256-1nj0xtlFN5fZKEiRLD+tiW/ZtxMQre1ziEGA0OVUGE4=";
31     })
32   ];
34   buildInputs = [
35     flint
36     gmp
37     singular
38     python3
39     ncurses
40   ];
42   nativeBuildInputs = [
43     autoreconfHook
44     pkg-config
45   ];
47   meta = with lib; {
48     description = "Python is Not a CAS -- modified version of Ginac";
49     longDescription = ''
50       Pynac -- "Python is Not a CAS" is a modified version of Ginac that
51       replaces the depency of GiNaC on CLN by a dependency instead of Python.
52       It is a lite version of GiNaC as well, not implementing all the features
53       of the full GiNaC, and it is *only* meant to be used as a Python library.
54     '';
55     homepage    = "http://pynac.org";
56     license = licenses.gpl2Plus;
57     maintainers = teams.sage.members;
58     platforms   = platforms.unix;
59   };