Commit 67e82c96 authored by Ben Darwin's avatar Ben Darwin
Browse files

python311Packages.scikit-build-core: 0.5.1 -> 0.7.0

parent 9fafaa30
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -16,24 +16,24 @@
, pytestCheckHook
, setuptools
, tomli
, virtualenv
, wheel
}:

buildPythonPackage rec {
  pname = "scikit-build-core";
  version = "0.5.1";
  format = "pyproject";
  version = "0.7.0";
  pyproject = true;

  src = fetchPypi {
    pname = "scikit_build_core";
    inherit version;
    hash = "sha256-xtrVpRJ7Kr+qI8uR0jrCEFn9d83fcSKzP9B3kQJNz78=";
    hash = "sha256-hffyRpxWjGzjWrL6Uv4tJqBODeUH06JMGrtyg3Vlf9M=";
  };

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

  nativeBuildInputs = [
@@ -65,6 +65,7 @@ buildPythonPackage rec {
    pytest-subprocess
    pytestCheckHook
    setuptools
    virtualenv
    wheel
  ] ++ passthru.optional-dependencies.pyproject;

@@ -76,6 +77,8 @@ buildPythonPackage rec {
    "tests/test_pyproject_pep660.py"
    "tests/test_setuptools_pep517.py"
    "tests/test_setuptools_pep518.py"
    # store permissions issue in Nix:
    "tests/test_editable.py"
  ];

  pythonImportsCheck = [