Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.oryx: init at 0.2.7 #345450

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/inference-gym/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
buildPythonPackage,
fetchPypi,
}:

buildPythonPackage rec {
pname = "inference-gym";
version = "0.0.4";
format = "wheel";

src = fetchPypi {
inherit format version;
pname = "inference_gym";
dist = "py3";
python = "py3";
hash = "sha256-bpi/IB8PuLPIKoTjmBeVl/4XGvE/yyG8WYxNqNcruvE=";
};

pythonImportsCheck = [ "inference_gym" ];

# The package does not ship any test.
doCheck = false;

meta = {
description = "Place to exercise inference methods to help make them faster, leaner and more robust";
homepage = "https://github.com/tensorflow/probability/tree/main/spinoffs/inference_gym";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/oryx/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6071,6 +6071,8 @@ self: super: with self; {

inequality = callPackage ../development/python-modules/inequality { };

inference-gym = callPackage ../development/python-modules/inference-gym { };

infinity = callPackage ../development/python-modules/infinity { };

inflect = callPackage ../development/python-modules/inflect { };
Expand Down Expand Up @@ -9450,6 +9452,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 { };
Expand Down