2022-02-14 16:00:11 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, filelock
|
|
|
|
, etuples
|
|
|
|
, logical-unification
|
|
|
|
, minikanren
|
|
|
|
, cons
|
|
|
|
, numba
|
|
|
|
, numba-scipy
|
|
|
|
, libgpuarray
|
|
|
|
, sympy
|
|
|
|
, cython
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aesara";
|
2022-03-31 01:02:15 +02:00
|
|
|
version = "2.5.3";
|
2022-02-14 16:00:11 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aesara-devs";
|
|
|
|
repo = "aesara";
|
2022-03-31 01:02:15 +02:00
|
|
|
rev = "refs/tags/rel-${version}";
|
|
|
|
sha256 = "sha256-20nc70gNdcGjtGxv2WxmYxmswNH8v7yGLkToP2iazjc=";
|
2022-02-14 16:00:11 +01:00
|
|
|
};
|
|
|
|
|
2022-02-25 12:53:01 +01:00
|
|
|
nativeBuildInputs = [
|
2022-02-14 16:00:11 +01:00
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
filelock
|
|
|
|
etuples
|
|
|
|
logical-unification
|
|
|
|
minikanren
|
|
|
|
cons
|
|
|
|
numba
|
|
|
|
numba-scipy
|
|
|
|
libgpuarray
|
|
|
|
sympy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "aesara" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays";
|
|
|
|
homepage = "https://github.com/aesara-devs/aesara";
|
|
|
|
changelog = "https://github.com/aesara-devs/aesara/releases";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ Etjean ];
|
|
|
|
};
|
|
|
|
}
|