2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-07-14 22:03:04 +00:00
|
|
|
, gmpy2
|
2020-04-24 23:36:52 +00:00
|
|
|
, isort
|
|
|
|
, mpmath
|
2021-07-14 22:03:04 +00:00
|
|
|
, numpy
|
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diofant";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "0.12.0";
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Diofant";
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-G0CTSoDSduiWxlrk5XjnX5ldNZ9f7yxaJeUPO3ezJgo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
isort
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-14 22:03:04 +00:00
|
|
|
gmpy2
|
2020-04-24 23:36:52 +00:00
|
|
|
mpmath
|
2021-07-14 22:03:04 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# tests take ~1h
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
pythonImportsCheck = [ "diofant" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python CAS library";
|
|
|
|
homepage = "https://diofant.readthedocs.io/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ suhr ];
|
|
|
|
};
|
|
|
|
}
|