1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numba, 6 numpy, 7 pillow, 8 pytestCheckHook, 9 scipy, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "pymatting"; 15 version = "1.1.10"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "pymatting"; 20 repo = "pymatting"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-wHCTqcBvVN/pTXH3iW57DPpMEsnehutRQB5NaugS6Zs="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ 28 numba 29 numpy 30 pillow 31 scipy 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "pymatting" ]; 37 38 disabledTests = [ 39 # no access to input data set 40 # see: https://github.com/pymatting/pymatting/blob/master/tests/download_images.py 41 "test_alpha" 42 "test_laplacians" 43 "test_preconditioners" 44 "test_lkm" 45 ]; 46 47 meta = with lib; { 48 description = "A Python library for alpha matting"; 49 homepage = "https://github.com/pymatting/pymatting"; 50 changelog = "https://github.com/pymatting/pymatting/blob/${src.rev}/CHANGELOG.md"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ blaggacao ]; 53 }; 54}