01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
88 lines
1.6 KiB
Nix
88 lines
1.6 KiB
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, cons
|
|
, cython
|
|
, etuples
|
|
, fetchFromGitHub
|
|
, filelock
|
|
, jax
|
|
, jaxlib
|
|
, logical-unification
|
|
, minikanren
|
|
, numba
|
|
, numba-scipy
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aesara";
|
|
version = "2.8.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aesara-devs";
|
|
repo = "aesara";
|
|
rev = "refs/tags/rel-${version}";
|
|
hash = "sha256-xHh7u0NDMjQiu0TdjmiHQebfpXJkuAF7dUAAtXrmrPo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cons
|
|
etuples
|
|
filelock
|
|
logical-unification
|
|
minikanren
|
|
numpy
|
|
scipy
|
|
typing-extensions
|
|
];
|
|
|
|
checkInputs = [
|
|
jax
|
|
jaxlib
|
|
numba
|
|
numba-scipy
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "--durations=50" ""
|
|
'';
|
|
|
|
preBuild = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"aesara"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Don't run the most compute-intense tests
|
|
"tests/scan/"
|
|
"tests/tensor/"
|
|
"tests/sandbox/"
|
|
"tests/sparse/sandbox/"
|
|
];
|
|
|
|
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 ];
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
|
};
|
|
}
|