depot/third_party/nixpkgs/pkgs/development/python-modules/jax-jumpy/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

33 lines
692 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 ];
};
}