Files
nixpkgs/pkgs/development/python-modules/face-recognition/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
955 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
# propagates
click,
dlib,
face-recognition-models,
numpy,
pillow,
# tests
pytestCheckHook,
config,
cudaSupport ? config.cudaSupport,
}:
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 ];
# Disables tests when running with cuda due to https://github.com/NixOS/nixpkgs/issues/225912
doCheck = !config.cudaSupport;
meta = {
license = lib.licenses.mit;
homepage = "https://github.com/ageitgey/face_recognition";
maintainers = [ ];
description = "World's simplest facial recognition api for Python and the command line";
};
}