3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #37566 from Ma27/init-face-recognition

pythonPackages.face_recognition: init at 1.2.1
This commit is contained in:
Robert Schütz 2018-03-23 09:55:04 +01:00 committed by GitHub
commit 1aedde9e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ buildPythonPackage, fetchFromGitHub, pillow, click, dlib, numpy
, face_recognition_models, scipy, stdenv, flake8, tox, pytest, glibcLocales
}:
buildPythonPackage rec {
pname = "face_recognition";
version = "1.2.1";
src = fetchFromGitHub {
repo = pname;
owner = "ageitgey";
rev = "fe421d4acd76e8a19098e942b7bd9c3bbef6ebc4"; # no tags available in Git, pure revs are pushed to pypi
sha256 = "0wv5qxkg7xv1cr43zhhbixaqgj08xw2l7yvwl8g3fb2kdxyndw1c";
};
postPatch = ''
substituteInPlace setup.py --replace "flake8==2.6.0" "flake8"
'';
propagatedBuildInputs = [ pillow click dlib numpy face_recognition_models scipy ];
checkInputs = [ flake8 tox pytest glibcLocales ];
checkPhase = ''
LC_ALL="en_US.UTF-8" py.test
'';
meta = with stdenv.lib; {
license = licenses.mit;
homepage = https://github.com/ageitgey/face_recognition;
maintainers = with maintainers; [ ma27 ];
description = "The world's simplest facial recognition api for Python and the command line";
};
}

View file

@ -0,0 +1,21 @@
{ buildPythonPackage, stdenv, fetchPypi }:
buildPythonPackage rec {
pname = "face_recognition_models";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1kwnv3qpy5bhspk780bkyg8jd9n5f6p91ja6sjlwk1wcm00d56xp";
};
# no module named `tests` as no tests are available
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/ageitgey/face_recognition_models;
license = licenses.cc0;
maintainers = with maintainers; [ ma27 ];
description = "Trained models for the face_recognition python library";
};
}

View file

@ -4184,6 +4184,10 @@ in {
};
};
face_recognition = callPackage ../development/python-modules/face_recognition { };
face_recognition_models = callPackage ../development/python-modules/face_recognition_models { };
faker = callPackage ../development/python-modules/faker { };
fake_factory = buildPythonPackage rec {