22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
57 lines
1 KiB
Nix
57 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, imageio
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scikitimage
|
|
, slicerator
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pims";
|
|
version = "0.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "soft-matter";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-F4UWbD9fOfvaZwYcY1l7XOzVKZyqqTGTqVJoNPo1Ozg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
slicerator
|
|
imageio
|
|
numpy
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
scikitimage
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pims"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"-W"
|
|
"ignore::DeprecationWarning"
|
|
];
|
|
|
|
disabledTests = [
|
|
# NotImplementedError: Do not know how to deal with infinite readers
|
|
"TestVideo_ImageIO"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python Image Sequence: Load video and sequential images in many formats with a simple, consistent interface";
|
|
homepage = "https://github.com/soft-matter/pims";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|