1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, imageio
5, numpy
6, pytestCheckHook
7, pythonOlder
8, scikit-image
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 nativeCheckInputs = [
33 pytestCheckHook
34 scikit-image
35 ];
36
37 pythonImportsCheck = [
38 "pims"
39 ];
40
41 pytestFlagsArray = [
42 "-W"
43 "ignore::Warning"
44 ];
45
46 disabledTests = [
47 # NotImplementedError: Do not know how to deal with infinite readers
48 "TestVideo_ImageIO"
49 ];
50
51 disabledTestPaths = [
52 # AssertionError: Tuples differ: (377, 505, 4) != (384, 512, 4)
53 "pims/tests/test_display.py"
54 ];
55
56 meta = with lib; {
57 description = "Module to load video and sequential images in various formats";
58 homepage = "https://github.com/soft-matter/pims";
59 changelog = "https://github.com/soft-matter/pims/releases/tag/v${version}";
60 license = licenses.bsd3;
61 maintainers = with maintainers; [ ];
62 };
63}