Files
nixpkgs/pkgs/development/python-modules/jmp/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
777 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
jax,
jaxlib,
lib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jmp";
version = "0.0.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "deepmind";
repo = "jmp";
tag = "v${version}";
hash = "sha256-+PefZU1209vvf1SfF8DXiTvKYEnZ4y8iiIr8yKikx9Y=";
};
# Wheel requires only `numpy`, but the import needs `jax`.
propagatedBuildInputs = [ jax ];
pythonImportsCheck = [ "jmp" ];
nativeCheckInputs = [
jaxlib
pytestCheckHook
];
meta = {
description = "This library implements support for mixed precision training in JAX";
homepage = "https://github.com/deepmind/jmp";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ndl ];
};
}