Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 43 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, glibcLocales 6, mpmath 7}: 8 9buildPythonPackage rec { 10 pname = "sympy"; 11 version = "1.4"; # Upgrades may break sage. Please test or ping @timokau. 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1q937csy8rd18pk2fz1ssj7jyj7l3rjx4nzbiz5vcymfhrb1x8bi"; 16 }; 17 18 checkInputs = [ glibcLocales ]; 19 20 propagatedBuildInputs = [ mpmath ]; 21 22 # tests take ~1h 23 doCheck = false; 24 25 patches = [ 26 # to be fixed by https://github.com/sympy/sympy/pull/13476 27 (fetchpatch { 28 url = "https://git.sagemath.org/sage.git/plain/build/pkgs/sympy/patches/03_undeffun_sage.patch?id=3277ba76d0ba7174608a31a0c6623e9210c63e3d"; 29 sha256 = "0xcp1qafvqnivvvi0byh51mbgqicjhmswwvqvamjz9rxfzm5f7d7"; 30 }) 31 ]; 32 33 preCheck = '' 34 export LANG="en_US.UTF-8" 35 ''; 36 37 meta = { 38 description = "A Python library for symbolic mathematics"; 39 homepage = http://www.sympy.org/; 40 license = lib.licenses.bsd3; 41 maintainers = with lib.maintainers; [ lovek323 timokau ]; 42 }; 43}