1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, imageio
5, numpy
6, pytestCheckHook
7, pythonOlder
8, scikitimage
9, slicerator
10}:
11
12buildPythonPackage rec {
13 pname = "pims";
14 version = "0.6.1";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "soft-matter";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-QdllA1QTSJ8vWaSJ0XoUanX53sb4RaOmdXBCFEsoWMU=";
24 };
25
26 propagatedBuildInputs = [
27 slicerator
28 imageio
29 numpy
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 scikitimage
35 ];
36
37 pythonImportsCheck = [
38 "pims"
39 ];
40
41 pytestFlagsArray = [
42 "-W"
43 "ignore::DeprecationWarning"
44 ];
45
46 disabledTests = [
47 # NotImplementedError: Do not know how to deal with infinite readers
48 "TestVideo_ImageIO"
49 ];
50
51 meta = with lib; {
52 description = "Python Image Sequence: Load video and sequential images in many formats with a simple, consistent interface";
53 homepage = "https://github.com/soft-matter/pims";
54 license = licenses.bsd3;
55 maintainers = with maintainers; [ costrouc ];
56 };
57}