2021-07-24 12:14:16 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, pytest-runner, pytestCheckHook, glib, vips, cffi
|
2020-10-07 09:15:18 +00:00
|
|
|
, pkg-config, pkgconfig, lib }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvips";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "2.1.16";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "654c03014a15f846786807a2ece6f525a8fec883d1c857742c8e37da149a81ed";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
nativeBuildInputs = [ pytest-runner pkgconfig pkg-config ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|