python3Packages.freetype-py: enable tests

This commit is contained in:
Martin Weinelt 2021-08-31 03:11:19 +02:00
parent 1bec8b29ac
commit e2ec8b85bf

View File

@ -1,4 +1,12 @@
{ lib, buildPythonPackage, fetchPypi, substituteAll, stdenv, setuptools-scm, freetype }:
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, substituteAll
, setuptools-scm
, freetype
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "freetype-py";
@ -20,6 +28,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ freetype ];
preCheck = ''
cd tests
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "freetype" ];
meta = with lib; {