Unverified Commit 9389dd1e authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python312Packages.scikit-build-core: 0.9.6 -> 0.10.5;...

python312Packages.scikit-build-core: 0.9.6 -> 0.10.5; python312Packages.nanobind: use tensorflow-bin (#336897)
parents 8b088e1e 1ea21816
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ buildPythonPackage rec {
    ninja
    pybind11
    scikit-build-core
  ] ++ scikit-build-core.optional-dependencies.pyproject;
  ];

  dependencies = [ numpy ];

+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ buildPythonPackage rec {
    pathspec
    ninja
    pyproject-metadata
  ] ++ scikit-build-core.optional-dependencies.pyproject;
  ];

  propagatedBuildInputs = [ numpy ];

+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ buildPythonPackage rec {
    ninja
    pybind11
    scikit-build-core
  ] ++ scikit-build-core.optional-dependencies.pyproject;
  ];

  dontUseCmakeConfigure = true;

+0 −2
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
  # build-system
  cmake,
  scikit-build-core,
  pathspec,
  ninja,
  nanobind,

@@ -45,7 +44,6 @@ buildPythonPackage rec {
    nanobind
    ninja
    numpy
    pathspec
    scikit-build-core
  ];

+34 −33
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  distlib,
  fetchFromGitHub,
  pythonOlder,
  exceptiongroup,

  # build-system
  hatch-vcs,
  hatchling,
  cattrs,
  cmake,
  ninja,

  # dependencies
  packaging,
  pathspec,
  pyproject-metadata,
  exceptiongroup,

  # tests
  build,
  cattrs,
  numpy,
  pybind11,
  pytest-subprocess,
  pytestCheckHook,
  setuptools,
@@ -23,62 +30,56 @@

buildPythonPackage rec {
  pname = "scikit-build-core";
  version = "0.9.6";
  version = "0.10.5";
  pyproject = true;

  src = fetchPypi {
    pname = "scikit_build_core";
    inherit version;
    hash = "sha256-e+r5M89zSsvrttlsApNlQQIkcJvN5o87C08MsD4FSTk=";
  src = fetchFromGitHub {
    owner = "scikit-build";
    repo = "scikit-build-core";
    rev = "refs/tags/v${version}";
    hash = "sha256-hpwXEWPofgMT4ua2tZI1mtGbaBkT2XPBd6QL8xTi1A0=";
  };

  postPatch = lib.optionalString (pythonOlder "3.11") ''
    substituteInPlace pyproject.toml \
      --replace '"error",' '"error", "ignore::UserWarning",'
      --replace-fail '"error",' '"error", "ignore::UserWarning",'
  '';

  nativeBuildInputs = [
  build-system = [
    hatch-vcs
    hatchling
  ];

  propagatedBuildInputs =
    [ packaging ]
  dependencies =
    [
      packaging
      pathspec
    ]
    ++ lib.optionals (pythonOlder "3.11") [
      exceptiongroup
      tomli
    ];

  passthru.optional-dependencies = {
    pyproject = [
      distlib
      pathspec
      pyproject-metadata
    ];
  };

  dontUseCmakeConfigure = true;

  nativeCheckInputs = [
    build
    cattrs
    cmake
    ninja
    numpy
    pybind11
    pytest-subprocess
    pytestCheckHook
    setuptools
    virtualenv
    wheel
  ] ++ passthru.optional-dependencies.pyproject;
  ];

  # cmake is only used for tests
  dontUseCmakeConfigure = true;

  pytestFlagsArray = [ "-m 'not isolated and not network'" ];

  disabledTestPaths = [
    # runs pip, requires network access
    "tests/test_custom_modules.py"
    "tests/test_hatchling.py"
    "tests/test_pyproject_pep517.py"
    "tests/test_pyproject_pep518.py"
    "tests/test_pyproject_pep660.py"
    "tests/test_setuptools_pep517.py"
    "tests/test_setuptools_pep518.py"
    # store permissions issue in Nix:
    "tests/test_editable.py"
  ];