Commit cf5ffc82 authored by Anthony ROUSSEL's avatar Anthony ROUSSEL
Browse files

python312Packages.pyvips: 2.2.1 -> 2.2.3

parent 60f3c032
Loading
Loading
Loading
Loading
+17 −12
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  pythonOlder,
  cffi,
  fetchFromGitHub,
  pytestCheckHook,
  glib,
  vips,
  cffi,
  pkgconfig, # from pythonPackages
  pkg-config, # from pkgs
  lib,
  pkgconfig, # from pythonPackages
  pytestCheckHook,
  pythonOlder,
  setuptools,
  vips,
}:

buildPythonPackage rec {
  pname = "pyvips";
  version = "2.2.1";
  format = "setuptools";
  version = "2.2.3";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "libvips";
    repo = "pyvips";
    rev = "v${version}";
    hash = "sha256-9S7h3bkm+QP78cpemYS7l3c8t+wXsJ5MUAP2T50R/Mc=";
    rev = "refs/tags/v${version}";
    hash = "sha256-EGB1cOR1pVCXGjRj1NLj4Mk3kIy8luRqk3gGJqVNs7U=";
  };

  nativeBuildInputs = [
    pkgconfig
    pkg-config
  ];

@@ -36,7 +36,12 @@ buildPythonPackage rec {
    vips
  ];

  propagatedBuildInputs = [ cffi ];
  build-system = [
    pkgconfig
    setuptools
  ];

  dependencies = [ cffi ];

  env = lib.optionalAttrs stdenv.cc.isClang {
    NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";