nixpkgs-suyu/pkgs/development/python-modules/sympy/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2018-02-03 13:00:50 +01:00
{ lib
, buildPythonPackage
, fetchPypi
2018-05-07 23:45:02 +02:00
, fetchpatch
2018-02-03 13:00:50 +01:00
, glibcLocales
, mpmath
}:
buildPythonPackage rec {
pname = "sympy";
2018-10-30 11:57:58 +01:00
version = "1.3"; # Upgrades may break sage. Please test or ping @timokau.
2018-02-03 13:00:50 +01:00
src = fetchPypi {
inherit pname version;
2018-10-30 11:57:58 +01:00
sha256 = "0m0vhyv15zszn19mk5xq3py4iijjbr7f3fpy1s57b8q7c9arncg1";
2018-02-03 13:00:50 +01:00
};
checkInputs = [ glibcLocales ];
propagatedBuildInputs = [ mpmath ];
2018-08-26 19:56:08 +02:00
# some tests fail: https://github.com/sympy/sympy/issues/15149
2018-02-03 13:00:50 +01:00
doCheck = false;
2018-05-07 23:45:02 +02:00
patches = [
2018-08-26 19:56:08 +02:00
# to be fixed by https://github.com/sympy/sympy/pull/13476
2018-05-07 23:45:02 +02:00
(fetchpatch {
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
sha256 = "1mh2va1rlgizgvx8yzqwgvbf5wvswarn511002b361mc8yy0bnhr";
})
];
2018-08-26 19:56:08 +02:00
preCheck = ''
export LANG="en_US.UTF-8"
'';
2018-02-03 13:00:50 +01:00
meta = {
description = "A Python library for symbolic mathematics";
homepage = http://www.sympy.org/;
license = lib.licenses.bsd3;
2018-08-26 19:56:08 +02:00
maintainers = with lib.maintainers; [ lovek323 timokau ];
2018-02-03 13:00:50 +01:00
};
2018-05-07 23:45:02 +02:00
}