Skip to content

Commit 60f6f01

Browse files
authored
Merge pull request #278568 from GaetanLepage/ml-dtypes
python311Packages.ml-dtypes: 0.3.1 -> 0.3.2
2 parents e617ded + 1f3c889 commit 60f6f01

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

pkgs/development/python-modules/ml-dtypes/default.nix

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,40 @@
22
, buildPythonPackage
33
, pythonOlder
44
, fetchFromGitHub
5-
, fetchpatch
65
, setuptools
7-
, pybind11
86
, numpy
97
, pytestCheckHook
108
, absl-py
119
}:
1210

1311
buildPythonPackage rec {
1412
pname = "ml-dtypes";
15-
version = "0.3.1";
16-
format = "pyproject";
13+
version = "0.3.2";
14+
pyproject = true;
1715

1816
disabled = pythonOlder "3.9";
1917

2018
src = fetchFromGitHub {
2119
owner = "jax-ml";
2220
repo = "ml_dtypes";
2321
rev = "refs/tags/v${version}";
24-
hash = "sha256-tuqB5itrAkT2b76rgRAJaOeng4V83TzPu400DPYrdKU=";
22+
hash = "sha256-epWunA5FULmCuTABl3uckFuNaSEpqJxtp0n0loCb6Q0=";
2523
# Since this upstream patch (https://github.com/jax-ml/ml_dtypes/commit/1bfd097e794413b0d465fa34f2eff0f3828ff521),
2624
# the attempts to use the nixpkgs packaged eigen dependency have failed.
2725
# Hence, we rely on the bundled eigen library.
2826
fetchSubmodules = true;
2927
};
3028

31-
patches = [
32-
# See https://github.com/jax-ml/ml_dtypes/issues/106.
33-
(fetchpatch {
34-
url = "https://github.com/jax-ml/ml_dtypes/commit/c082a2df6bc0686b35c4b4a303fd1990485e181f.patch";
35-
hash = "sha256-aVJy9vT00b98xOrJCdbCHSZBI3uyjafmN88Z2rjBS48=";
36-
})
37-
];
38-
3929
postPatch = ''
4030
substituteInPlace pyproject.toml \
4131
--replace "numpy~=1.21.2" "numpy" \
4232
--replace "numpy~=1.23.3" "numpy" \
4333
--replace "numpy~=1.26.0" "numpy" \
44-
--replace "pybind11~=2.11.1" "pybind11" \
4534
--replace "setuptools~=68.1.0" "setuptools"
4635
'';
4736

4837
nativeBuildInputs = [
4938
setuptools
50-
pybind11
5139
];
5240

5341
propagatedBuildInputs = [
@@ -72,6 +60,7 @@ buildPythonPackage rec {
7260
meta = with lib; {
7361
description = "A stand-alone implementation of several NumPy dtype extensions used in machine learning libraries";
7462
homepage = "https://github.com/jax-ml/ml_dtypes";
63+
changelog = "https://github.com/jax-ml/ml_dtypes/releases/tag/v${version}";
7564
license = licenses.asl20;
7665
maintainers = with maintainers; [ GaetanLepage samuela ];
7766
};

0 commit comments

Comments
 (0)