mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
mpmath,
|
|
|
|
# tests
|
|
glibcLocales,
|
|
|
|
# Reverse dependency
|
|
sage,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "sympy";
|
|
version = "1.14.0";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sympy";
|
|
repo = "sympy";
|
|
tag = "sympy-${finalAttrs.version}";
|
|
hash = "sha256-aSMQ/H5agjsa+Lp7o15/irLSTLtmF/VEqMCBGbXbvmM=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"mpmath"
|
|
];
|
|
dependencies = [
|
|
mpmath
|
|
];
|
|
|
|
# tests take ~1h
|
|
doCheck = false;
|
|
nativeCheckInputs = [ glibcLocales ];
|
|
pythonImportsCheck = [ "sympy" ];
|
|
|
|
passthru.tests = {
|
|
inherit sage;
|
|
};
|
|
|
|
meta = {
|
|
description = "Python library for symbolic mathematics";
|
|
mainProgram = "isympy";
|
|
homepage = "https://www.sympy.org/";
|
|
downloadPage = "https://github.com/sympy/sympy";
|
|
changelog = "https://github.com/sympy/sympy/wiki/Release-Notes-for-${finalAttrs.version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
teams = [ lib.teams.sage ];
|
|
};
|
|
})
|