From 6df74adb14a3395a10e18af83030073f96efd38e Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 2 Apr 2018 19:42:09 +0200 Subject: [PATCH 1/2] pythonPackages.face_recognition: 1.2.1 -> 1.2.2 The following fixes have been applied according to the changelog (https://github.com/ageitgey/face_recognition/releases) - Added the face_detection CLI command - Removed dependencies on scipy to make installation easier - Cleaned up KNN example and fixed a bug with drawing fonts to label detected faces in the demo Furthermore the maintainer switched to actual GIT tags for PyPI releases as discussed in ageitgey/face_recognition#417 and #37566 --- .../python-modules/face_recognition/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/face_recognition/default.nix b/pkgs/development/python-modules/face_recognition/default.nix index 3b9a2c15b6e..d1d8e8535a4 100644 --- a/pkgs/development/python-modules/face_recognition/default.nix +++ b/pkgs/development/python-modules/face_recognition/default.nix @@ -1,23 +1,23 @@ { 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 { pname = "face_recognition"; - version = "1.2.1"; + version = "1.2.2"; src = fetchFromGitHub { repo = pname; owner = "ageitgey"; - rev = "fe421d4acd76e8a19098e942b7bd9c3bbef6ebc4"; # no tags available in Git, pure revs are pushed to pypi - sha256 = "0wv5qxkg7xv1cr43zhhbixaqgj08xw2l7yvwl8g3fb2kdxyndw1c"; + rev = "v${version}"; + sha256 = "17jnyr80j1p74gyvh1jabvwd3zsxvip2y7cjhh2g6gsjv2dpvrjv"; }; postPatch = '' 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 ]; checkPhase = '' From a770159b760ce49b45f8c47fec18759a004135d9 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 3 Apr 2018 01:51:47 +0200 Subject: [PATCH 2/2] Revert "dlib: 19.9 -> 19.10" This reverts commit 7ec4573f4c9e4ad5e05319b13adef1a804d52db0. --- pkgs/development/libraries/dlib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/dlib/default.nix b/pkgs/development/libraries/dlib/default.nix index d3e2f6c9c98..53ec9949f17 100644 --- a/pkgs/development/libraries/dlib/default.nix +++ b/pkgs/development/libraries/dlib/default.nix @@ -3,14 +3,14 @@ }: stdenv.mkDerivation rec { - version = "19.10"; + version = "19.9"; name = "dlib-${version}"; src = fetchFromGitHub { owner = "davisking"; repo = "dlib"; rev ="v${version}"; - sha256 = "0sgxblf4n33b8wgblyblmrkwydvy1yh7fzll1b6c4zgkz675w0m5"; + sha256 = "0lc54r928j9dg7f2wn25m887z24d31wrc14v2hn6aknp1z084lrc"; }; postPatch = ''