Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 100 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101{ lib, stdenv, buildPythonPackage, cons, cython, etuples, fetchFromGitHub, filelock, hatch-vcs, hatchling, jax, jaxlib, logical-unification, minikanren, numba, numba-scipy, numpy, pytestCheckHook, pythonOlder, scipy, typing-extensions}:
buildPythonPackage rec { pname = "aesara"; version = "2.8.12"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "aesara-devs"; repo = "aesara"; rev = "refs/tags/rel-${version}"; hash = "sha256-lRc0IGpxkSnVeziFOYX7f99P7WNvz1KHy73qMPrU24I="; };
nativeBuildInputs = [ cython hatch-vcs hatchling ];
propagatedBuildInputs = [ cons etuples filelock logical-unification minikanren numpy scipy typing-extensions ];
nativeCheckInputs = [ jax jaxlib numba numba-scipy pytestCheckHook ];
postPatch = '' substituteInPlace pyproject.toml \ --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/" # JAX is not available on all platform and often broken "tests/link/jax/" ];
disabledTests = [ # Disable all benchmark tests "test_scan_multiple_output" "test_logsumexp_benchmark" ];
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/tag/rel-${version}"; license = licenses.bsd3; maintainers = with maintainers; [ Etjean ]; broken = (stdenv.isLinux && stdenv.isAarch64); };}