blob: ba90167166d9720cd50d593a5083714109c231fd (
plain)
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
56
57
58
59
60
61
62
63
64
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
gdown,
keras,
numpy,
opencv-python,
pillow,
tensorflow,
tf-keras,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "retinaface";
version = "0.0.17";
pyproject = true;
src = fetchFromGitHub {
owner = "serengil";
repo = "retinaface";
tag = "v${version}";
hash = "sha256-0s1CSGlK2bF1F2V/IuG2ZqD7CkNfHGvp1M5C3zDnuKs=";
};
# requires internet connection
disabledTestPaths = [
"tests/test_actions.py"
"tests/test_align_first.py"
"tests/test_expand_face_area.py"
];
build-system = [ setuptools ];
dependencies = [
gdown
keras
numpy
opencv-python
pillow
tensorflow
tf-keras
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "retinaface" ];
meta = {
description = "Deep Face Detection Library for Python";
homepage = "https://github.com/serengil/retinaface";
changelog = "https://github.com/serengil/retinaface/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ derdennisop ];
};
}
|