bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
numba,
|
|
numpy,
|
|
pillow,
|
|
pytestCheckHook,
|
|
scipy,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymatting";
|
|
version = "1.1.10";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pymatting";
|
|
repo = "pymatting";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-wHCTqcBvVN/pTXH3iW57DPpMEsnehutRQB5NaugS6Zs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
numba
|
|
numpy
|
|
pillow
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pymatting" ];
|
|
|
|
disabledTests = [
|
|
# no access to input data set
|
|
# see: https://github.com/pymatting/pymatting/blob/master/tests/download_images.py
|
|
"test_alpha"
|
|
"test_laplacians"
|
|
"test_preconditioners"
|
|
"test_lkm"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for alpha matting";
|
|
homepage = "https://github.com/pymatting/pymatting";
|
|
changelog = "https://github.com/pymatting/pymatting/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ blaggacao ];
|
|
};
|
|
}
|