Merge pull request #38361 from Ma27/update-face-recognition
Update face recognition
This commit is contained in:
commit
1ddff47184
@ -3,14 +3,14 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "19.10";
|
version = "19.9";
|
||||||
name = "dlib-${version}";
|
name = "dlib-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "davisking";
|
owner = "davisking";
|
||||||
repo = "dlib";
|
repo = "dlib";
|
||||||
rev ="v${version}";
|
rev ="v${version}";
|
||||||
sha256 = "0sgxblf4n33b8wgblyblmrkwydvy1yh7fzll1b6c4zgkz675w0m5";
|
sha256 = "0lc54r928j9dg7f2wn25m887z24d31wrc14v2hn6aknp1z084lrc";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
{ buildPythonPackage, fetchFromGitHub, pillow, click, dlib, numpy
|
{ buildPythonPackage, fetchFromGitHub, pillow, click, dlib, numpy
|
||||||
, face_recognition_models, scipy, stdenv, flake8, tox, pytest, glibcLocales
|
, face_recognition_models, stdenv, flake8, tox, pytest, glibcLocales
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "face_recognition";
|
pname = "face_recognition";
|
||||||
version = "1.2.1";
|
version = "1.2.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
repo = pname;
|
repo = pname;
|
||||||
owner = "ageitgey";
|
owner = "ageitgey";
|
||||||
rev = "fe421d4acd76e8a19098e942b7bd9c3bbef6ebc4"; # no tags available in Git, pure revs are pushed to pypi
|
rev = "v${version}";
|
||||||
sha256 = "0wv5qxkg7xv1cr43zhhbixaqgj08xw2l7yvwl8g3fb2kdxyndw1c";
|
sha256 = "17jnyr80j1p74gyvh1jabvwd3zsxvip2y7cjhh2g6gsjv2dpvrjv";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py --replace "flake8==2.6.0" "flake8"
|
substituteInPlace setup.py --replace "flake8==2.6.0" "flake8"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ pillow click dlib numpy face_recognition_models scipy ];
|
propagatedBuildInputs = [ pillow click dlib numpy face_recognition_models ];
|
||||||
|
|
||||||
checkInputs = [ flake8 tox pytest glibcLocales ];
|
checkInputs = [ flake8 tox pytest glibcLocales ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user