Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pymatting / default.nix
blob371a4a03c2f38a91209681fa19b499263ae1b6dc
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , numba
5 , numpy
6 , pillow
7 , pytestCheckHook
8 , scipy
9 , setuptools
12 buildPythonPackage rec {
13   pname = "pymatting";
14   version = "1.1.10";
15   pyproject = true;
17   src = fetchFromGitHub {
18     owner = "pymatting";
19     repo = "pymatting";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-wHCTqcBvVN/pTXH3iW57DPpMEsnehutRQB5NaugS6Zs=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     numba
30     numpy
31     pillow
32     scipy
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [
40     "pymatting"
41   ];
43   disabledTests = [
44     # no access to input data set
45     # see: https://github.com/pymatting/pymatting/blob/master/tests/download_images.py
46     "test_alpha"
47     "test_laplacians"
48     "test_preconditioners"
49     "test_lkm"
50   ];
52   meta = with lib; {
53     description = "A Python library for alpha matting";
54     homepage = "https://github.com/pymatting/pymatting";
55     changelog = "https://github.com/pymatting/pymatting/blob/${src.rev}/CHANGELOG.md";
56     license = licenses.mit;
57     maintainers = with maintainers; [ blaggacao ];
58   };