at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 imageio, 6 numpy, 7 pytestCheckHook, 8 pythonOlder, 9 scikit-image, 10 slicerator, 11}: 12 13buildPythonPackage rec { 14 pname = "pims"; 15 version = "0.7"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "soft-matter"; 22 repo = "pims"; 23 tag = "v${version}"; 24 hash = "sha256-3SBZk11w6eTZFmETMRJaYncxY38CYne1KzoF5oRgzuY="; 25 }; 26 27 propagatedBuildInputs = [ 28 slicerator 29 imageio 30 numpy 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 scikit-image 36 ]; 37 38 pythonImportsCheck = [ "pims" ]; 39 40 pytestFlags = [ 41 "-Wignore::Warning" 42 ]; 43 44 disabledTests = [ 45 # NotImplementedError: Do not know how to deal with infinite readers 46 "TestVideo_ImageIO" 47 ]; 48 49 disabledTestPaths = [ 50 # AssertionError: Tuples differ: (377, 505, 4) != (384, 512, 4) 51 "pims/tests/test_display.py" 52 ]; 53 54 meta = with lib; { 55 description = "Module to load video and sequential images in various formats"; 56 homepage = "https://github.com/soft-matter/pims"; 57 changelog = "https://github.com/soft-matter/pims/releases/tag/v${version}"; 58 license = licenses.bsd3; 59 maintainers = [ ]; 60 }; 61}