nixpkgs/pkgs/development/python-modules/aesara/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2022-02-14 15:00:11 +00:00
, buildPythonPackage
, cons
, cython
, etuples
2022-02-14 15:00:11 +00:00
, fetchFromGitHub
, filelock
, jax
, jaxlib
2022-02-14 15:00:11 +00:00
, logical-unification
, minikanren
, numba
, numba-scipy
, numpy
2022-02-14 15:00:11 +00:00
, pytestCheckHook
, pythonOlder
, scipy
, typing-extensions
2022-02-14 15:00:11 +00:00
}:
buildPythonPackage rec {
pname = "aesara";
version = "2.7.5";
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}";
hash = "sha256-wx0F7GHfIS2OTnOIlhQAsUAZHm9PncoIG+bn3dsIWrU=";
2022-02-14 15:00:11 +00:00
};
nativeBuildInputs = [
2022-02-14 15:00:11 +00:00
cython
];
propagatedBuildInputs = [
cons
2022-02-14 15:00:11 +00:00
etuples
filelock
2022-02-14 15:00:11 +00:00
logical-unification
minikanren
numpy
scipy
typing-extensions
2022-02-14 15:00:11 +00:00
];
checkInputs = [
jax
jaxlib
numba
numba-scipy
2022-02-14 15:00:11 +00:00
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--durations=50" ""
'';
2022-02-14 15:00:11 +00:00
preBuild = ''
export HOME=$(mktemp -d)
'';
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; {
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 ];
};
}