Commit 87ef4318 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.islpy: 2024.2 -> 2025.1

parent feeedbf3
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -20,21 +20,16 @@

buildPythonPackage rec {
  pname = "islpy";
  version = "2024.2";
  version = "2025.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "inducer";
    repo = "islpy";
    tag = "v${version}";
    hash = "sha256-ixw9U4WqcXBW6KGBOsUImjsxmvG5XKCv4jCbTjJ4pjg=";
    hash = "sha256-njwNijl7kAbU7v6Bd6p0J9KnYzXZi9gVdqSf8qD0FXE=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
        --replace-fail "setuptools>=42,<64;python_version<'3.12'" "setuptools>=42"
  '';

  build-system = [
    cmake
    nanobind
@@ -56,7 +51,7 @@ buildPythonPackage rec {

  # Force resolving the package from $out to make generated ext files usable by tests
  preCheck = ''
    mv islpy islpy.hidden
    rm -rf islpy
  '';

  nativeCheckInputs = [ pytestCheckHook ];
@@ -66,6 +61,7 @@ buildPythonPackage rec {
  meta = {
    description = "Python wrapper around isl, an integer set library";
    homepage = "https://github.com/inducer/islpy";
    changelog = "https://github.com/inducer/islpy/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ tomasajt ];
  };