python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libmatheval / default.nix
blobb0fe1c35ef3a6b8982042872cd7557bf8485cb4c
1 { lib, stdenv, fetchurl, pkg-config, guile, autoconf, flex, fetchpatch }:
3 stdenv.mkDerivation rec {
4   version = "1.1.11";
5   pname = "libmatheval";
7   nativeBuildInputs = [ pkg-config autoconf flex ];
8   buildInputs = [ guile ];
10   src = fetchurl {
11     url = "https://ftp.gnu.org/gnu/libmatheval/${pname}-${version}.tar.gz";
12     sha256 = "474852d6715ddc3b6969e28de5e1a5fbaff9e8ece6aebb9dc1cc63e9e88e89ab";
13   };
15   # Patches coming from debian package
16   # https://packages.debian.org/source/sid/libs/libmatheval
17   patches = [ (fetchpatch {
18                 url = "https://salsa.debian.org/science-team/libmatheval/raw/debian/1.1.11+dfsg-3/debian/patches/002-skip-docs.patch";
19                 sha256 = "1nnkk9aw4jj6nql46zhwq6vx74zrmr1xq5ix0xyvpawhabhgjg62";
20               } )
21               (fetchpatch {
22                 url = "https://salsa.debian.org/science-team/libmatheval/raw/debian/1.1.11+dfsg-3/debian/patches/003-guile2.0.patch";
23                 sha256 = "1xgfw4finfvr20kjbpr4yl2djxmyr4lmvfa11pxirfvhrdi602qj";
24                } )
25               (fetchpatch {
26                 url = "https://salsa.debian.org/science-team/libmatheval/raw/debian/1.1.11+dfsg-3/debian/patches/disable_coth_test.patch";
27                 sha256 = "0bai8jrd5azfz5afmjixlvifk34liq58qb7p9kb45k6kc1fqqxzm";
28                } )
29             ];
31   meta = {
32     description = "A library to parse and evaluate symbolic expressions input as text";
33     longDescription = ''
34       GNU libmatheval is a library (callable from C and Fortran) to parse and evaluate symbolic
35       expressions input as text. It supports expressions in any number of variables of arbitrary
36       names, decimal and symbolic constants, basic unary and binary operators, and elementary
37       mathematical functions. In addition to parsing and evaluation, libmatheval can also compute
38       symbolic derivatives and output expressions to strings.
39     '';
40     homepage = "https://www.gnu.org/software/libmatheval/";
41     license = lib.licenses.gpl3;
42     maintainers = [ lib.maintainers.bzizou ];
43     platforms = lib.platforms.linux;
44   };