2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-09-13 21:41:13 +01:00
|
|
|
, buildPythonPackage
|
2022-05-02 20:17:06 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, imageio
|
2018-09-13 21:41:13 +01:00
|
|
|
, numpy
|
2022-05-02 20:17:06 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, scikitimage
|
|
|
|
, slicerator
|
2018-09-13 21:41:13 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-05-02 20:17:06 +01:00
|
|
|
pname = "pims";
|
2022-05-02 11:08:41 +01:00
|
|
|
version = "0.6.0";
|
2022-05-02 20:17:06 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-09-13 21:41:13 +01:00
|
|
|
|
2022-05-02 20:17:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "soft-matter";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-F4UWbD9fOfvaZwYcY1l7XOzVKZyqqTGTqVJoNPo1Ozg=";
|
2018-09-13 21:41:13 +01:00
|
|
|
};
|
|
|
|
|
2022-05-02 20:17:06 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
slicerator
|
|
|
|
imageio
|
|
|
|
numpy
|
|
|
|
];
|
2018-09-13 21:41:13 +01:00
|
|
|
|
2022-05-02 20:17:06 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
scikitimage
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pims"
|
|
|
|
];
|
|
|
|
|
2022-05-02 20:57:08 +01:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2022-05-02 20:17:06 +01:00
|
|
|
disabledTests = [
|
|
|
|
# NotImplementedError: Do not know how to deal with infinite readers
|
|
|
|
"TestVideo_ImageIO"
|
|
|
|
];
|
2018-09-13 21:41:13 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-13 21:41:13 +01:00
|
|
|
description = "Python Image Sequence: Load video and sequential images in many formats with a simple, consistent interface";
|
2022-05-02 20:17:06 +01:00
|
|
|
homepage = "https://github.com/soft-matter/pims";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2018-09-13 21:41:13 +01:00
|
|
|
};
|
|
|
|
}
|