python310Packages.regional: disable failing tests

This commit is contained in:
Fabian Affolter 2023-01-28 15:38:15 +01:00
parent c71193894e
commit cd72e77090

View File

@ -4,38 +4,48 @@
, numpy , numpy
, scipy , scipy
, matplotlib , matplotlib
, pytest , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "regional"; pname = "regional";
version = "1.1.2"; version = "1.1.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "freeman-lab"; owner = "freeman-lab";
repo = pname; repo = pname;
rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo
sha256 = "03qgm35q9sa5cy0kkw4bj60zfylw0isfzb96nlhdfrsigzs2zkxv"; hash = "sha256-u88v9H9RZ9cgtSat73QEnHr3gZGL8DmBZ0XphMuoDw8=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
matplotlib
numpy numpy
scipy scipy
matplotlib
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pytest pytestCheckHook
]; ];
checkPhase = '' pythonImportsCheck = [
pytest "regional"
''; ];
disabledTests = [
"test_dilate"
"test_outline"
"test_mask"
];
meta = with lib; { meta = with lib; {
description = "Simple manipualtion and display of spatial regions"; description = "Simple manipualtion and display of spatial regions";
homepage = "https://github.com/freeman-lab/regional"; homepage = "https://github.com/freeman-lab/regional";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }