mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 23:21:27 +00:00
python3Packages.funsor: 0.4.6 -> 0.4.7
Diff: https://github.com/pyro-ppl/funsor/compare/0.4.6...0.4.7 Changelog: https://github.com/pyro-ppl/funsor/releases/tag/0.4.7
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
opt-einsum,
|
||||
typing-extensions,
|
||||
|
||||
# checks
|
||||
# tests
|
||||
pyro-ppl,
|
||||
torch,
|
||||
pandas,
|
||||
@@ -25,20 +25,19 @@
|
||||
requests,
|
||||
scipy,
|
||||
torchvision,
|
||||
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "funsor";
|
||||
version = "0.4.6";
|
||||
version = "0.4.7";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyro-ppl";
|
||||
repo = "funsor";
|
||||
tag = version;
|
||||
hash = "sha256-Prj1saT0yoPAP8rDE0ipBEpR3QMk4PS12VSJlxc22p8=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-0STJv1OOliJaHdmYUXdnOnocH3hVXceH/Uw5nILvT+U=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -49,13 +48,6 @@ buildPythonPackage rec {
|
||||
})
|
||||
];
|
||||
|
||||
# TypeError: clip() got an unexpected keyword argument 'a_max'
|
||||
postPatch = ''
|
||||
substituteInPlace funsor/jax/ops.py \
|
||||
--replace-fail "a_max=" "max=" \
|
||||
--replace-fail "a_min=" "min="
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
@@ -87,24 +79,11 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "funsor" ];
|
||||
|
||||
disabledTests = [
|
||||
# `test_torch_save` got broken by the update of torch (2.3.1 -> 2.4.0):
|
||||
# FutureWarning: You are using `torch.load` with `weights_only=False`...
|
||||
# TODO: Try to re-enable this test at next release
|
||||
"test_torch_save"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# Failures related to JIT
|
||||
# RuntimeError: required keyword attribute 'Subgraph' has the wrong type
|
||||
"test_local_param_ok"
|
||||
"test_plate_ok"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Functional tensors for probabilistic programming";
|
||||
homepage = "https://funsor.pyro.ai";
|
||||
changelog = "https://github.com/pyro-ppl/funsor/releases/tag/${version}";
|
||||
changelog = "https://github.com/pyro-ppl/funsor/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user