Unverified Commit 2a41ac2c authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python312Packages.uarray: unbreak, use new build system, adopt (#354604)

parents 03bf2d93 1278531d
Loading
Loading
Loading
Loading
+14 −7
Original line number Diff line number Diff line
@@ -2,14 +2,17 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  scikit-build-core,
  setuptools,
  setuptools-scm,
  cmake,
  ninja,
  matchpy,
  numpy,
  astunparse,
  typing-extensions,
  pytest7CheckHook,
  pytest-cov,
  pytestCheckHook,
  pytest-cov-stub,
}:

buildPythonPackage rec {
@@ -24,11 +27,15 @@ buildPythonPackage rec {
    hash = "sha256-q9lMU/xA+G2x38yZy3DxCpXTEmg1lZhZ8GFIHDIKE24=";
  };

  nativeBuildInputs = [
  build-system = [
    scikit-build-core
    setuptools
    setuptools-scm
    cmake
    ninja
  ];
  build-system = [ setuptools ];

  dontUseCmakeConfigure = true;

  dependencies = [
    astunparse
@@ -38,8 +45,8 @@ buildPythonPackage rec {
  ];

  nativeCheckInputs = [
    pytest7CheckHook
    pytest-cov
    pytestCheckHook
    pytest-cov-stub
  ];

  # Tests must be run from outside the source directory
@@ -58,6 +65,6 @@ buildPythonPackage rec {
    description = "Universal array library";
    homepage = "https://github.com/Quansight-Labs/uarray";
    license = licenses.bsd0;
    maintainers = [ ];
    maintainers = [ lib.maintainers.pbsds ];
  };
}