nixpkgs/pkgs/development/python-modules/jax-jumpy/default.nix
2024-05-22 17:32:03 +02:00

35 lines
699 B
Nix

{
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 ];
};
}