Commit b8ec97a7 authored by Phillip Seeber's avatar Phillip Seeber
Browse files

python3Packages.biopython: fix numpy >= 2.4 compatibility

parent b4a1d471
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchpatch,
  setuptools,
  numpy,
}:
@@ -16,6 +17,14 @@ buildPythonPackage rec {
    hash = "sha256-k6ULWGpNLOxoqy+Z0D71g8V2HY+6VTXLjoHaeB0Nkv8=";
  };

  patches = [
    # Numpy 2.4 compatibility
    (fetchpatch {
      url = "https://github.com/biopython/biopython/pull/5161.patch";
      hash = "sha256-oN0nNlhvshIgNrmm+tIeCAJx1U/OqhdL4tj51DV2CHU=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [ numpy ];
@@ -33,8 +42,6 @@ buildPythonPackage rec {
  '';

  meta = {
    # https://github.com/biopython/biopython/issues/5135
    broken = lib.versionAtLeast numpy.version "2.4";
    description = "Python library for bioinformatics";
    longDescription = ''
      Biopython is a set of freely available tools for biological computation