2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-03-05 16:20:37 +00:00
|
|
|
, buildPythonPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, cons
|
|
|
|
, cython
|
|
|
|
, etuples
|
2022-03-05 16:20:37 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, filelock
|
2022-06-26 10:26:21 +00:00
|
|
|
, jax
|
|
|
|
, jaxlib
|
2022-03-05 16:20:37 +00:00
|
|
|
, logical-unification
|
|
|
|
, minikanren
|
|
|
|
, numba
|
|
|
|
, numba-scipy
|
2022-06-16 17:23:12 +00:00
|
|
|
, numpy
|
2022-03-05 16:20:37 +00:00
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, typing-extensions
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aesara";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.7.9";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aesara-devs";
|
|
|
|
repo = "aesara";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/rel-${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-s7qqFSY4teL2uiGg6CkpPtr7lNNAj61nCn83Zr7/JaQ=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
cons
|
2022-03-05 16:20:37 +00:00
|
|
|
etuples
|
2022-06-16 17:23:12 +00:00
|
|
|
filelock
|
2022-03-05 16:20:37 +00:00
|
|
|
logical-unification
|
|
|
|
minikanren
|
2022-06-16 17:23:12 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
typing-extensions
|
2022-03-05 16:20:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
jax
|
|
|
|
jaxlib
|
2022-06-16 17:23:12 +00:00
|
|
|
numba
|
|
|
|
numba-scipy
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "--durations=50" ""
|
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aesara"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Don't run the most compute-intense tests
|
|
|
|
"tests/scan/"
|
|
|
|
"tests/tensor/"
|
|
|
|
"tests/sandbox/"
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2022-03-05 16:20:37 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|