2019-07-21 18:15:06 +00:00
|
|
|
{ lib
|
|
|
|
, isPy3k
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestrunner
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2019-07-21 18:15:06 +00:00
|
|
|
, isort
|
|
|
|
, mpmath
|
|
|
|
, strategies
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diofant";
|
|
|
|
version = "0.10.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "Diofant";
|
|
|
|
sha256 = "0qjg0mmz2cqxryr610mppx3virf1gslzrsk24304502588z53v8w";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
isort
|
|
|
|
pytestrunner
|
2021-06-03 10:09:11 +00:00
|
|
|
setuptools-scm
|
2019-07-21 18:15:06 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mpmath
|
|
|
|
strategies
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests take ~1h
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python CAS library";
|
|
|
|
homepage = "https://diofant.readthedocs.io/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ suhr ];
|
|
|
|
};
|
|
|
|
}
|