depot/third_party/nixpkgs/pkgs/development/python-modules/pyvips/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

31 lines
781 B
Nix

{ buildPythonPackage, fetchPypi, pytestrunner, pytestCheckHook, glib, vips, cffi
, pkg-config, pkgconfig, lib }:
buildPythonPackage rec {
pname = "pyvips";
version = "2.1.12";
src = fetchPypi {
inherit pname version;
sha256 = "0pg0dxhxgi2m7bb5bi5wpx9hgnbi8ws1bz6w2dldbhi52pizghl4";
};
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 ];
};
}