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