Files
Yueh-Shun Li 624897829b treewide: modernize Python package pytest flags
Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags`
instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
2025-07-15 03:00:08 +08:00

54 lines
1001 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
boto3,
diskcache,
packaging,
numpy,
requests,
scikit-image,
six,
pytestCheckHook,
tifffile,
}:
buildPythonPackage rec {
pname = "slicedimage";
version = "4.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "spacetx";
repo = "slicedimage";
rev = version;
sha256 = "1vpg8varvfx0nj6xscdfm7m118hzsfz7qfzn28r9rsfvrhr0dlcw";
};
propagatedBuildInputs = [
boto3
diskcache
packaging
numpy
requests
scikit-image
six
tifffile
];
nativeCheckInputs = [ pytestCheckHook ];
# Ignore tests which require setup, check again if disabledTestFiles can be used
disabledTestPaths = [ "tests/io_" ];
pythonImportsCheck = [ "slicedimage" ];
meta = with lib; {
description = "Library to access sliced imaging data";
mainProgram = "slicedimage";
homepage = "https://github.com/spacetx/slicedimage";
license = licenses.mit;
maintainers = [ ];
};
}