Merge pull request #314119 from GaetanLepage/nanobind
python311Packages.nanobind: 1.9.2 -> 2.0.0
This commit is contained in:
commit
35b72a343d
@ -17,7 +17,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "islpy";
|
||||
version = "2023.2.5";
|
||||
version = "2024.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
@ -25,8 +25,8 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "inducer";
|
||||
repo = "islpy";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0m41G5HlPrgt4rDY3Y9cKBJGHSnLg/R+IywBO1anRpQ=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-N5XI6V3BvNobCh7NAvtzVejtDMnlcb31S5gseyab1T0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -18,25 +18,26 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "nanobind";
|
||||
version = "1.9.2";
|
||||
version = "2.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wjakob";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-6swDqw7sEYOawQbNWD8VfSQoi+9wjhOhOOwPPkahDas=";
|
||||
repo = "nanobind";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-yDFrhSIWywWw7ri5aHRPigi9ujDeazpJa4AVrkLx5BI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
cmake
|
||||
ninja
|
||||
scikit-build
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [ eigen ];
|
||||
dontUseCmakeBuildDir = true;
|
||||
|
||||
@ -51,13 +52,11 @@ buildPythonPackage rec {
|
||||
scipy
|
||||
torch
|
||||
tensorflow
|
||||
# Uncomment at next release (1.9.3)
|
||||
# See https://github.com/wjakob/nanobind/issues/578
|
||||
# jax
|
||||
# jaxlib
|
||||
jax
|
||||
jaxlib
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://github.com/wjakob/nanobind";
|
||||
changelog = "https://github.com/wjakob/nanobind/blob/${src.rev}/docs/changelog.rst";
|
||||
description = "Tiny and efficient C++/Python bindings";
|
||||
@ -68,7 +67,7 @@ buildPythonPackage rec {
|
||||
more efficient: bindings compile in a shorter amount of time, produce
|
||||
smaller binaries, and have better runtime performance.
|
||||
'';
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ parras ];
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ parras ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user