2019-07-13 03:34:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-02-26 18:31:33 +00:00
|
|
|
, fetchFromGitHub
|
2019-07-13 03:34:25 +00:00
|
|
|
, boto3
|
|
|
|
, diskcache
|
|
|
|
, enum34
|
|
|
|
, packaging
|
|
|
|
, pathlib
|
|
|
|
, numpy
|
|
|
|
, requests
|
|
|
|
, scikitimage
|
|
|
|
, six
|
2021-02-26 18:31:33 +00:00
|
|
|
, pytestCheckHook
|
2019-07-13 03:34:25 +00:00
|
|
|
, isPy27
|
2019-11-28 06:33:22 +00:00
|
|
|
, tifffile
|
2019-07-13 03:34:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slicedimage";
|
2019-12-19 19:31:22 +00:00
|
|
|
version = "4.1.1";
|
2019-07-13 03:34:25 +00:00
|
|
|
|
2021-02-26 18:31:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spacetx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vpg8varvfx0nj6xscdfm7m118hzsfz7qfzn28r9rsfvrhr0dlcw";
|
2019-07-13 03:34:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
diskcache
|
|
|
|
packaging
|
|
|
|
numpy
|
|
|
|
requests
|
|
|
|
scikitimage
|
|
|
|
six
|
2019-11-28 06:33:22 +00:00
|
|
|
tifffile
|
2019-07-13 03:34:25 +00:00
|
|
|
] ++ lib.optionals isPy27 [ pathlib enum34 ];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-26 18:31:33 +00:00
|
|
|
pytestCheckHook
|
2019-07-13 03:34:25 +00:00
|
|
|
];
|
|
|
|
|
2021-02-26 18:31:33 +00:00
|
|
|
# Ignore tests which require setup, check again if disabledTestFiles can be used
|
|
|
|
pytestFlagsArray = [ "--ignore tests/io_" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "slicedimage" ];
|
2019-07-13 03:34:25 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to access sliced imaging data";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/spacetx/slicedimage";
|
2019-07-13 03:34:25 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|