ch9344: 2.0 -> 0-unstable-2024-11-15 (#354536)
[NixPkgs.git] / pkgs / development / python-modules / pymatting / default.nix
blob46c2ee9bd2dfa55da9804a9206b6ab0dc97cd91e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   numba,
6   numpy,
7   pillow,
8   pytestCheckHook,
9   scipy,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "pymatting";
15   version = "1.1.10";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "pymatting";
20     repo = "pymatting";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-wHCTqcBvVN/pTXH3iW57DPpMEsnehutRQB5NaugS6Zs=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   propagatedBuildInputs = [
28     numba
29     numpy
30     pillow
31     scipy
32   ];
34   nativeCheckInputs = [ pytestCheckHook ];
36   pythonImportsCheck = [ "pymatting" ];
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   ];
47   meta = with lib; {
48     description = "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   };