Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 31 lines 793 B view raw
1{ buildPythonPackage, fetchPypi, pytestrunner, pytestCheckHook, glib, vips, cffi 2, pkg-config, pkgconfig, lib }: 3 4buildPythonPackage rec { 5 pname = "pyvips"; 6 version = "2.1.14"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "244e79c625be65237677c79424d4476de6c406805910015d4adbd0186c64a6a2"; 11 }; 12 13 nativeBuildInputs = [ pytestrunner 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}