python310Packages.blackjax: init at 0.9.6
This commit is contained in:
parent
2f14f5d561
commit
20f49fa10b
2 changed files with 64 additions and 0 deletions
62
pkgs/development/python-modules/blackjax/default.nix
Normal file
62
pkgs/development/python-modules/blackjax/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pytestCheckHook
|
||||
, fastprogress
|
||||
, jax
|
||||
, jaxlib
|
||||
, jaxopt
|
||||
, optax
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "blackjax";
|
||||
version = "0.9.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "blackjax-devs";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-EieDu9SJxi2cp1bHlxX4vvFZeDGMGIm24GoR8nSyjvE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# remove in next release
|
||||
(fetchpatch {
|
||||
name = "fix-lbfgs-args";
|
||||
url = "https://github.com/blackjax-devs/blackjax/commit/1aaa6f64bbcb0557b658604b2daba826e260cbc6.patch";
|
||||
hash = "sha256-XyjorXPH5Ap35Tv1/lTeTWamjplJF29SsvOq59ypftE=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
fastprogress
|
||||
jax
|
||||
jaxlib
|
||||
jaxopt
|
||||
optax
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
disabledTestPaths = [ "tests/test_benchmarks.py" ];
|
||||
disabledTests = [
|
||||
# too slow
|
||||
"test_adaptive_tempered_smc"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"blackjax"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://blackjax-devs.github.io/blackjax";
|
||||
description = "Sampling library designed for ease of use, speed and modularity";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
|
@ -1296,6 +1296,8 @@ self: super: with self; {
|
|||
|
||||
black = callPackage ../development/python-modules/black { };
|
||||
|
||||
blackjax = callPackage ../development/python-modules/blackjax { };
|
||||
|
||||
black-macchiato = callPackage ../development/python-modules/black-macchiato { };
|
||||
|
||||
bleach = callPackage ../development/python-modules/bleach { };
|
||||
|
|
Loading…
Reference in a new issue