depot/third_party/nixpkgs/pkgs/development/python-modules/oryx/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

53 lines
995 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
jax,
jaxlib,
tensorflow-probability,
# tests
inference-gym,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "oryx";
version = "0.2.7";
pyproject = true;
src = fetchFromGitHub {
owner = "jax-ml";
repo = "oryx";
rev = "refs/tags/v${version}";
hash = "sha256-1n7ogGuFNAeOyXWe0/pAouhg2+aA3MXxlCcsrfqRTdU=";
};
build-system = [ poetry-core ];
dependencies = [
jax
jaxlib
tensorflow-probability
];
pythonImportsCheck = [ "oryx" ];
nativeCheckInputs = [
inference-gym
pytestCheckHook
];
meta = {
description = "Library for probabilistic programming and deep learning built on top of Jax";
homepage = "https://github.com/jax-ml/oryx";
changelog = "https://github.com/jax-ml/oryx/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}