Skip to content

Commit

Permalink
python310Packages.pyvips: run tests, cleanup nativeBuildInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Apr 24, 2022
1 parent 7409801 commit 646b9a7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkgs/development/python-modules/pyvips/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{ buildPythonPackage, fetchPypi, pytest-runner, pytestCheckHook, glib, vips, cffi
, pkg-config, pkgconfig, lib }:
{ buildPythonPackage, fetchFromGitHub, pytestCheckHook, glib, vips, cffi
, pkgconfig, lib }:

buildPythonPackage rec {
pname = "pyvips";
version = "2.1.16";

src = fetchPypi {
inherit pname version;
sha256 = "654c03014a15f846786807a2ece6f525a8fec883d1c857742c8e37da149a81ed";
src = fetchFromGitHub {
owner = "libvips";
repo = "pyvips";
rev = "v${version}";
sha256 = "sha256-8CeQbx3f2i0lEU0wxPeUwHlUGtzOztzTOdFNjIDy8s0=";
};

nativeBuildInputs = [ pytest-runner pkgconfig pkg-config ];
nativeBuildInputs = [ pkgconfig ];

buildInputs = [ glib vips ];

propagatedBuildInputs = [ cffi ];

# tests are not included in pypi tarball
doCheck = false;
checkInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "pyvips" ];
Expand Down

0 comments on commit 646b9a7

Please sign in to comment.