2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pillow, pyres, nose
|
2020-04-24 23:36:52 +00:00
|
|
|
, preggy, numpy, yanc, nose-focus, mock, opencv }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "remotecv";
|
|
|
|
version = "2.2.2";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pillow pyres ];
|
|
|
|
|
|
|
|
checkInputs = [ nose preggy numpy yanc nose-focus mock opencv ];
|
|
|
|
|
|
|
|
# PyPI tarball doesn't contain tests so let's use GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thumbor";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0slalp1x626ajy2cbdfifhxf0ffzckqdz6siqsqr6s03hrl877hy";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Remove unnecessary argparse dependency and some seemingly unnecessary
|
|
|
|
# version upper bounds because nixpkgs contains (or could contain) newer
|
|
|
|
# versions.
|
|
|
|
# See: https://github.com/thumbor/remotecv/issues/15
|
|
|
|
patches = [
|
|
|
|
./install_requires.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --with-yanc -s tests/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "OpenCV worker for facial and feature recognition";
|
|
|
|
homepage = "https://github.com/thumbor/remotecv/wiki";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
broken = true; # no longer compatible with latest pillow
|
|
|
|
};
|
|
|
|
}
|