Files
nixpkgs/pkgs/development/python-modules/pymatting/default.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

63 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numba,
numpy,
pillow,
pytestCheckHook,
scipy,
setuptools,
config,
cudaSupport ? config.cudaSupport,
cupy,
pyopencl,
}:
buildPythonPackage rec {
pname = "pymatting";
version = "1.1.13";
pyproject = true;
src = fetchFromGitHub {
owner = "pymatting";
repo = "pymatting";
tag = "v${version}";
hash = "sha256-AzdhRZgcT+gfLPZYKJLQUW7uLyXoRy6SP2raHWd9XUY=";
};
build-system = [ setuptools ];
dependencies = [
numba
numpy
pillow
scipy
]
++ lib.optionals cudaSupport [
cupy
pyopencl
];
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/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = [ ];
};
}