2022-05-29 20:45:48 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-02-14 15:00:11 +00:00
|
|
|
, buildPythonPackage
|
2022-05-24 09:44:25 +00:00
|
|
|
, cons
|
|
|
|
, cython
|
|
|
|
, etuples
|
2022-02-14 15:00:11 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, filelock
|
2022-06-22 12:21:24 +00:00
|
|
|
, jax
|
|
|
|
, jaxlib
|
2022-02-14 15:00:11 +00:00
|
|
|
, logical-unification
|
|
|
|
, minikanren
|
|
|
|
, numba
|
|
|
|
, numba-scipy
|
2022-05-24 09:44:25 +00:00
|
|
|
, numpy
|
2022-02-14 15:00:11 +00:00
|
|
|
, pytestCheckHook
|
2022-05-24 09:44:25 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, typing-extensions
|
2022-02-14 15:00:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aesara";
|
2022-07-06 11:59:44 +00:00
|
|
|
version = "2.7.5";
|
2022-05-24 09:44:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-02-14 15:00:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aesara-devs";
|
|
|
|
repo = "aesara";
|
2022-03-30 23:02:15 +00:00
|
|
|
rev = "refs/tags/rel-${version}";
|
2022-07-06 11:59:44 +00:00
|
|
|
hash = "sha256-wx0F7GHfIS2OTnOIlhQAsUAZHm9PncoIG+bn3dsIWrU=";
|
2022-02-14 15:00:11 +00:00
|
|
|
};
|
|
|
|
|
2022-02-25 11:53:01 +00:00
|
|
|
nativeBuildInputs = [
|
2022-02-14 15:00:11 +00:00
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-24 09:44:25 +00:00
|
|
|
cons
|
2022-02-14 15:00:11 +00:00
|
|
|
etuples
|
2022-05-24 09:44:25 +00:00
|
|
|
filelock
|
2022-02-14 15:00:11 +00:00
|
|
|
logical-unification
|
|
|
|
minikanren
|
2022-05-24 09:44:25 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
typing-extensions
|
2022-02-14 15:00:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-06-22 12:21:24 +00:00
|
|
|
jax
|
|
|
|
jaxlib
|
2022-05-24 09:44:25 +00:00
|
|
|
numba
|
|
|
|
numba-scipy
|
2022-02-14 15:00:11 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-05-24 09:44:25 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "--durations=50" ""
|
|
|
|
'';
|
|
|
|
|
2022-02-14 15:00:11 +00:00
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2022-05-24 09:44:25 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aesara"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Don't run the most compute-intense tests
|
|
|
|
"tests/scan/"
|
|
|
|
"tests/tensor/"
|
|
|
|
"tests/sandbox/"
|
|
|
|
];
|
2022-02-14 15:00:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-29 20:45:48 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2022-02-14 15:00:11 +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 ];
|
|
|
|
};
|
|
|
|
}
|