3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/sympy/default.nix

44 lines
1 KiB
Nix
Raw Normal View History

2018-02-03 12:00:50 +00:00
{ lib
, buildPythonPackage
, fetchPypi
2018-05-07 22:45:02 +01:00
, fetchpatch
2018-02-03 12:00:50 +00:00
, glibcLocales
, mpmath
}:
buildPythonPackage rec {
pname = "sympy";
2019-04-14 16:52:03 +01:00
version = "1.4"; # Upgrades may break sage. Please test or ping @timokau.
2018-02-03 12:00:50 +00:00
src = fetchPypi {
inherit pname version;
2019-04-14 16:52:03 +01:00
sha256 = "1q937csy8rd18pk2fz1ssj7jyj7l3rjx4nzbiz5vcymfhrb1x8bi";
2018-02-03 12:00:50 +00:00
};
checkInputs = [ glibcLocales ];
propagatedBuildInputs = [ mpmath ];
2019-04-14 16:52:03 +01:00
# tests take ~1h
2018-02-03 12:00:50 +00:00
doCheck = false;
2018-05-07 22:45:02 +01:00
patches = [
2018-08-26 18:56:08 +01:00
# to be fixed by https://github.com/sympy/sympy/pull/13476
2018-05-07 22:45:02 +01:00
(fetchpatch {
2019-04-14 16:52:03 +01:00
url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=3277ba76d0ba7174608a31a0c6623e9210c63e3d";
sha256 = "0xcp1qafvqnivvvi0byh51mbgqicjhmswwvqvamjz9rxfzm5f7d7";
2018-05-07 22:45:02 +01:00
})
];
2018-08-26 18:56:08 +01:00
preCheck = ''
export LANG="en_US.UTF-8"
'';
2018-02-03 12:00:50 +00:00
meta = {
description = "A Python library for symbolic mathematics";
homepage = http://www.sympy.org/;
license = lib.licenses.bsd3;
2018-08-26 18:56:08 +01:00
maintainers = with lib.maintainers; [ lovek323 timokau ];
2018-02-03 12:00:50 +00:00
};
2018-05-07 22:45:02 +01:00
}