blob: 5e3b39dd523a77148f269c301f8b509a68a44ecd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, numba
, numpy
, pillow
, scipy
, pytestCheckHook
,
}:
buildPythonPackage rec {
pname = "pymatting";
version = "1.1.10";
format = "setuptools";
src = fetchFromGitHub {
owner = "pymatting";
repo = "pymatting";
rev = "refs/tags/v${version}";
hash = "sha256-wHCTqcBvVN/pTXH3iW57DPpMEsnehutRQB5NaugS6Zs=";
};
patches = [ ./01-kdtree-signature.patch ];
propagatedBuildInputs = [
numba
numpy
pillow
scipy
];
pythonImportsCheck = [ "pymatting" ];
nativeCheckInputs = [
pytestCheckHook
];
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 = "A 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 ];
};
}
|