26 tensorflow-probability,
31 buildPythonPackage rec {
36 src = fetchFromGitHub {
39 rev = "refs/tags/rel-${version}";
40 hash = "sha256-RhicZSVkaDtIngIOvzyEQ+VMZwdV45wDk7e7bThTIh8=";
68 tensorflow-probability
72 export HOME=$(mktemp -d)
75 pythonImportsCheck = [ "pytensor" ];
77 # Ensure that the installed package is used instead of the source files from the current workdir
84 # benchmarks (require pytest-benchmark):
86 "test_fused_elemwise_benchmark"
87 "test_logsumexp_benchmark"
88 "test_minimal_random_function_call_benchmark"
89 "test_scan_multiple_output"
90 "test_vector_taps_benchmark"
92 # Failure reported upstream: https://github.com/pymc-devs/pytensor/issues/980
93 "test_choose_signature"
95 ++ lib.optionals stdenv.hostPlatform.isDarwin [
96 # pytensor.link.c.exceptions.CompileError: Compilation failed (return status=1)
108 "test_NoOutputFromInplace"
110 "test_adv_sub1_sparse_grad"
114 "test_cache_race_condition"
115 "test_check_for_aliased_inputs"
116 "test_clinker_literal_cache"
119 "test_csr_dense_grad"
121 "test_ellipsis_einsum"
122 "test_empty_elemwise"
125 "test_get_item_list_grad"
134 "test_multiple_outputs"
137 "test_optimizations_preserved"
138 "test_overided_function"
139 "test_potential_output_aliasing_induced_by_updates"
141 "test_rebuild_strict"
142 "test_runtime_broadcast_c"
146 "test_structured_add_s_v_grad"
147 "test_structureddot_csc_grad"
148 "test_structureddot_csr_grad"
150 "test_swap_SharedVariable_with_given"
158 disabledTestPaths = [
159 # Don't run the most compute-intense tests
162 "tests/sparse/sandbox/"
165 passthru.updateScript = nix-update-script {
173 description = "Python library to define, optimize, and efficiently evaluate mathematical expressions involving multi-dimensional arrays";
174 mainProgram = "pytensor-cache";
175 homepage = "https://github.com/pymc-devs/pytensor";
176 changelog = "https://github.com/pymc-devs/pytensor/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
177 license = lib.licenses.bsd3;
178 maintainers = with lib.maintainers; [