python3Packages.slicedimage: switch to pytestCheckHook
This commit is contained in:
parent
870dbb751f
commit
953b7ae255
@ -1,6 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, boto3
|
, boto3
|
||||||
, diskcache
|
, diskcache
|
||||||
, enum34
|
, enum34
|
||||||
@ -10,7 +10,7 @@
|
|||||||
, requests
|
, requests
|
||||||
, scikitimage
|
, scikitimage
|
||||||
, six
|
, six
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, isPy27
|
, isPy27
|
||||||
, tifffile
|
, tifffile
|
||||||
}:
|
}:
|
||||||
@ -19,9 +19,11 @@ buildPythonPackage rec {
|
|||||||
pname = "slicedimage";
|
pname = "slicedimage";
|
||||||
version = "4.1.1";
|
version = "4.1.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "spacetx";
|
||||||
sha256 = "7369f1d7fa09f6c9969625c4b76a8a63d2507a94c6fc257183da1c10261703e9";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1vpg8varvfx0nj6xscdfm7m118hzsfz7qfzn28r9rsfvrhr0dlcw";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -36,13 +38,13 @@ buildPythonPackage rec {
|
|||||||
] ++ lib.optionals isPy27 [ pathlib enum34 ];
|
] ++ lib.optionals isPy27 [ pathlib enum34 ];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# ignore tests which require setup
|
# Ignore tests which require setup, check again if disabledTestFiles can be used
|
||||||
checkPhase = ''
|
pytestFlagsArray = [ "--ignore tests/io_" ];
|
||||||
pytest --ignore tests/io_
|
|
||||||
'';
|
pythonImportsCheck = [ "slicedimage" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library to access sliced imaging data";
|
description = "Library to access sliced imaging data";
|
||||||
|
Loading…
Reference in New Issue
Block a user