2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
boto3,
|
|
|
|
diskcache,
|
|
|
|
packaging,
|
|
|
|
numpy,
|
|
|
|
requests,
|
|
|
|
scikit-image,
|
|
|
|
six,
|
|
|
|
pytestCheckHook,
|
|
|
|
tifffile,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slicedimage";
|
|
|
|
version = "4.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spacetx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1vpg8varvfx0nj6xscdfm7m118hzsfz7qfzn28r9rsfvrhr0dlcw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
diskcache
|
|
|
|
packaging
|
|
|
|
numpy
|
|
|
|
requests
|
2023-05-24 13:37:59 +00:00
|
|
|
scikit-image
|
2020-04-24 23:36:52 +00:00
|
|
|
six
|
|
|
|
tifffile
|
2024-05-15 15:35:15 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
# Ignore tests which require setup, check again if disabledTestFiles can be used
|
|
|
|
pytestFlagsArray = [ "--ignore tests/io_" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "slicedimage" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to access sliced imaging data";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "slicedimage";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/spacetx/slicedimage";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|