python310Packages.pyvips: run tests, cleanup nativeBuildInputs
This commit is contained in:
parent
7409801908
commit
646b9a7dbc
|
@ -1,23 +1,23 @@
|
||||||
{ buildPythonPackage, fetchPypi, pytest-runner, pytestCheckHook, glib, vips, cffi
|
{ buildPythonPackage, fetchFromGitHub, pytestCheckHook, glib, vips, cffi
|
||||||
, pkg-config, pkgconfig, lib }:
|
, pkgconfig, lib }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyvips";
|
pname = "pyvips";
|
||||||
version = "2.1.16";
|
version = "2.1.16";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "libvips";
|
||||||
sha256 = "654c03014a15f846786807a2ece6f525a8fec883d1c857742c8e37da149a81ed";
|
repo = "pyvips";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-8CeQbx3f2i0lEU0wxPeUwHlUGtzOztzTOdFNjIDy8s0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytest-runner pkgconfig pkg-config ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ glib vips ];
|
buildInputs = [ glib vips ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ cffi ];
|
propagatedBuildInputs = [ cffi ];
|
||||||
|
|
||||||
# tests are not included in pypi tarball
|
|
||||||
doCheck = false;
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyvips" ];
|
pythonImportsCheck = [ "pyvips" ];
|
||||||
|
|
Loading…
Reference in a new issue