git.iko.soy/typeable/nixpkgs
on master help sign in
sympy: backport upstream fixes
commita0eace3be6a182f11305ab00c0feca8c385c6d0c authorTimo Kaufmann <timokau@zoho.com> dateMon 7 May 2018, 23:45 (9 years ago) parent424835a
1 file changed+18−1
pkgs/development/python-modules/sympy/default.nix+18−1
pkgs/development/python-modules/sympy/default.nix+18−1
@@ -1,6 +1,7 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4+, fetchpatch
45, glibcLocales
56, mpmath
67}:
@@ -25,10 +26,26 @@ buildPythonPackage rec {
2526 export LANG="en_US.UTF-8"
2627 '';
2728
29+ patches = [
30+ # see https://trac.sagemath.org/ticket/20204 and https://github.com/sympy/sympy/issues/12825
31+ # There is also an upstream patch for this, included in the next release (PR #128826).
32+ # However that doesn't quite fix the issue yet. Apparently some changes by sage are required.
33+ # TODO re-evaluate the change once a new sympy version is released (open a sage trac ticket about
34+ # it).
35+ (fetchpatch {
36+ url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba";
37+ sha256 = "1mh2va1rlgizgvx8yzqwgvbf5wvswarn511002b361mc8yy0bnhr";
38+ })
39+ (fetchpatch {
40+ url = "https://github.com/sympy/sympy/pull/13276.patch";
41+ sha256 = "1rz74b5c74vwh3pj9axxgh610i02l3555vvsvr4a15ya7siw7zxh";
42+ })
43+ ];
44+
2845 meta = {
2946 description = "A Python library for symbolic mathematics";
3047 homepage = http://www.sympy.org/;
3148 license = lib.licenses.bsd3;
3249 maintainers = with lib.maintainers; [ lovek323 ];
3350 };
34−}
51+}