2020-09-26 15:33:43 +01:00
|
|
|
{ buildPythonPackage, fetchPypi, pytestrunner, pytestCheckHook, glib, vips, cffi
|
|
|
|
, pkg-config, pkgconfig, lib }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvips";
|
2020-12-22 05:29:13 +00:00
|
|
|
version = "2.1.14";
|
2020-09-26 15:33:43 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-22 05:29:13 +00:00
|
|
|
sha256 = "244e79c625be65237677c79424d4476de6c406805910015d4adbd0186c64a6a2";
|
2020-09-26 15:33:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytestrunner pkgconfig pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ glib vips ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cffi ];
|
|
|
|
|
|
|
|
# tests are not included in pypi tarball
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyvips" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python wrapper for libvips";
|
|
|
|
homepage = "https://github.com/libvips/pyvips";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ccellado ];
|
|
|
|
};
|
|
|
|
}
|