1{ buildPythonPackage, fetchPypi, pytest-runner, pytestCheckHook, glib, vips, cffi 2, pkg-config, pkgconfig, lib }: 3 4buildPythonPackage rec { 5 pname = "pyvips"; 6 version = "2.1.15"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "8bca4077dbdc1434dcbc6759407367b6561e3505aa9555b1bc0b45989dcf50b2"; 11 }; 12 13 nativeBuildInputs = [ pytest-runner pkgconfig pkg-config ]; 14 15 buildInputs = [ glib vips ]; 16 17 propagatedBuildInputs = [ cffi ]; 18 19 # tests are not included in pypi tarball 20 doCheck = false; 21 checkInputs = [ pytestCheckHook ]; 22 23 pythonImportsCheck = [ "pyvips" ]; 24 25 meta = with lib; { 26 description = "A python wrapper for libvips"; 27 homepage = "https://github.com/libvips/pyvips"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ ccellado ]; 30 }; 31}