python3Packages.jax-jumpy: init at 1.0.0

This commit is contained in:
Gaetan Lepage 2023-03-30 18:34:27 +02:00
parent 5fc99ba499
commit 8f8a5959cc
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, setuptools
}:
buildPythonPackage rec {
pname = "jumpy";
version = "1.0.0";
src = fetchFromGitHub {
owner = "Farama-Foundation";
repo = pname;
rev = version;
hash = "sha256-tPQ/v2AVnAEC+08BVAvvgJ8Pj89nXZSn2tQ6nxXuSfA=";
};
format = "pyproject";
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ numpy ];
pythonImportsCheck = [ "jumpy" ];
meta = with lib; {
description = "Jumpy is a common backend for NumPy and optionally JAX";
homepage = "https://github.com/Farama-Foundation/Jumpy";
license = licenses.asl20;
maintainers = with maintainers; [ GaetanLepage ];
};
}

View File

@ -4922,6 +4922,8 @@ self: super: with self; {
jax = callPackage ../development/python-modules/jax { };
jax-jumpy = callPackage ../development/python-modules/jax-jumpy { };
jaxlib-bin = callPackage ../development/python-modules/jaxlib/bin.nix {
cudaSupport = pkgs.config.cudaSupport or false;
};