Commit 16d18d70 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent ffbb417c
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -2,34 +2,41 @@
  lib,
  stdenv,
  buildPythonPackage,
  substituteAll,
  fetchFromGitHub,
  fetchpatch,
  glibc,
  libtiff,
  openjpeg,
  fetchFromGitHub,
  lxml,
  numpy,
  openjpeg,
  pytestCheckHook,
  pythonOlder,
  scikit-image,
  setuptools,
  substituteAll,
}:

buildPythonPackage rec {
  pname = "glymur";
  version = "0.13.4";
  version = "0.13.6";
  pyproject = true;

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "quintusdias";
    repo = "glymur";
    tag = "v${version}";
    hash = "sha256-RzRZuSNvlUrB+J93a1ob7dDMacZB082JwVHQ9Fce2JA=";
    hash = "sha256-tIvDhlFPpDxC3CgBDT0RN9MM8ycY+J1hjcLXzx14Zhs=";
  };

  patches = [
    # Numpy 2.x compatibility, https://github.com/quintusdias/glymur/pull/675
    (fetchpatch {
      name = "numpy2-compat.patch";
      url = "https://github.com/quintusdias/glymur/commit/89b159299035ebb05776c3b90278f410ca6dba64.patch";
      hash = "sha256-C/Q5WZmW5YtN3U8fxKljfqwKHtFLfR2LQ69Tj8SuIWg=";
    })
    (substituteAll {
      src = ./set-lib-paths.patch;
      openjp2_lib = "${lib.getLib openjpeg}/lib/libopenjp2${stdenv.hostPlatform.extensions.sharedLibrary}";