Commit 3f4ecf8a authored by Philipp Arras's avatar Philipp Arras
Browse files

python3Packages.nanobind: 2.0.0 -> 2.1.0

parent 3745928b
Loading
Loading
Loading
Loading
+17 −11
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  pythonOlder,

  # build-system
  cmake,
  eigen,
  ninja,
  scikit-build,
  pathspec,
  scikit-build-core,

  # dependencies
  eigen,

  # tests
  pytestCheckHook,
  numpy,
  scipy,
  torch,
  tensorflow-bin,
  jax,
  jaxlib,
  tensorflow,
  setuptools,
}:
buildPythonPackage rec {
  pname = "nanobind";
  version = "2.0.0";
  version = "2.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "wjakob";
    repo = "nanobind";
    rev = "refs/tags/v${version}";
    hash = "sha256-yDFrhSIWywWw7ri5aHRPigi9ujDeazpJa4AVrkLx5BI=";
    hash = "sha256-AO/EHx2TlXidalhPb+xuUchaek4ki7fDExu2foBgUp0=";
    fetchSubmodules = true;
  };

@@ -34,11 +40,11 @@ buildPythonPackage rec {
  build-system = [
    cmake
    ninja
    scikit-build
    setuptools
    pathspec
    scikit-build-core
  ];

  buildInputs = [ eigen ];
  dependencies = [ eigen ];
  dontUseCmakeBuildDir = true;

  preCheck = ''
@@ -51,7 +57,7 @@ buildPythonPackage rec {
    numpy
    scipy
    torch
    tensorflow
    tensorflow-bin
    jax
    jaxlib
  ];