Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 = pname; 23 rev = "refs/tags/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 pytestFlagsArray = [ 41 "-W" 42 "ignore::Warning" 43 ]; 44 45 disabledTests = [ 46 # NotImplementedError: Do not know how to deal with infinite readers 47 "TestVideo_ImageIO" 48 ]; 49 50 disabledTestPaths = [ 51 # AssertionError: Tuples differ: (377, 505, 4) != (384, 512, 4) 52 "pims/tests/test_display.py" 53 ]; 54 55 meta = with lib; { 56 description = "Module to load video and sequential images in various formats"; 57 homepage = "https://github.com/soft-matter/pims"; 58 changelog = "https://github.com/soft-matter/pims/releases/tag/v${version}"; 59 license = licenses.bsd3; 60 maintainers = [ ]; 61 }; 62}