From 73187eaa33b2c7d1169f7c8f157c4f2f85b3c673 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 30 Sep 2024 07:52:09 +0200 Subject: [PATCH] python312Packages.oryx: init at 0.2.7 --- .../python-modules/oryx/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/oryx/default.nix diff --git a/pkgs/development/python-modules/oryx/default.nix b/pkgs/development/python-modules/oryx/default.nix new file mode 100644 index 0000000000000..fdf4780a801da --- /dev/null +++ b/pkgs/development/python-modules/oryx/default.nix @@ -0,0 +1,53 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6fde195186297..a27af127a4b32 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9462,6 +9462,8 @@ self: super: with self; { orvibo = callPackage ../development/python-modules/orvibo { }; + oryx = callPackage ../development/python-modules/oryx { }; + os-client-config = callPackage ../development/python-modules/os-client-config { }; os-service-types = callPackage ../development/python-modules/os-service-types { };