depot/third_party/nixpkgs/pkgs/development/python-modules/slicedimage/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1,001 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 = pname;
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
pytestFlagsArray = [ "--ignore 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 = [ ];
};
}