nixpkgs/pkgs/development/python-modules/face-recognition/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

46 lines
799 B
Nix

{ 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";
};
}