Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 765 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, glibcLocales 6, mpmath 7}: 8 9buildPythonPackage rec { 10 pname = "sympy"; 11 version = "1.5.1"; # Upgrades may break sage. Please test or ping @timokau. 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "d77901d748287d15281f5ffe5b0fef62dd38f357c2b827c44ff07f35695f4e7e"; 16 }; 17 18 checkInputs = [ glibcLocales ]; 19 20 propagatedBuildInputs = [ mpmath ]; 21 22 # tests take ~1h 23 doCheck = false; 24 pythonImportsCheck = [ "sympy" ]; 25 26 preCheck = '' 27 export LANG="en_US.UTF-8" 28 ''; 29 30 meta = with lib; { 31 description = "A Python library for symbolic mathematics"; 32 homepage = "https://www.sympy.org/"; 33 license = licenses.bsd3; 34 maintainers = with maintainers; [ lovek323 timokau ]; 35 }; 36}