about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/face-recognition/default.nix
blob: 8b06c83cf5aad00fa392543dfd3abf1a459250ed (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
{ buildPythonPackage
, fetchPypi
, lib

# propagates
, click
, dlib
, face-recognition-models
, numpy
, pillow

# tests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "face-recognition";
  version = "1.3.0";
  format = "setuptools";

  src = fetchPypi  {
    pname = "face_recognition";
    inherit version;
    hash = "sha256-Xl790WhqpWavDTzBMTsTHksZdleo/9A2aebT+tknBew=";
  };

  propagatedBuildInputs = [
    click
    dlib
    face-recognition-models
    numpy
    pillow
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    license = licenses.mit;
    homepage = "https://github.com/ageitgey/face_recognition";
    maintainers = with maintainers; [ ];
    description = "The world's simplest facial recognition api for Python and the command line";
  };
}