Files
nixpkgs/pkgs/development/python-modules/sympy/default.nix
2025-04-25 22:20:17 -03:00

43 lines
782 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
glibcLocales,
mpmath,
# Reverse dependency
sage,
}:
buildPythonPackage rec {
pname = "sympy";
version = "1.13.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-sn/SxlMOCrOeJ1/JtoOJU2flHV2pG6qNPWTbJWX+xNk=";
};
nativeCheckInputs = [ glibcLocales ];
propagatedBuildInputs = [ mpmath ];
# tests take ~1h
doCheck = false;
pythonImportsCheck = [ "sympy" ];
passthru.tests = {
inherit sage;
};
meta = with lib; {
description = "Python library for symbolic mathematics";
mainProgram = "isympy";
homepage = "https://www.sympy.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ lovek323 ];
teams = [ teams.sage ];
};
}