pythonPackages.remotecv: init at 2.2.2

This commit is contained in:
Jaakko Luttinen
2018-10-27 16:17:05 +03:00
committed by Maximilian Bosch
parent c6bd5294aa
commit fd6e6dcfa1
3 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pillow, argparse, pyres, nose
, preggy, numpy, yanc, nose-focus, mock, opencv }:
buildPythonPackage rec {
pname = "remotecv";
version = "2.2.2";
propagatedBuildInputs = [ pillow argparse 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/
'';
meta = with stdenv.lib; {
description = "OpenCV worker for facial and feature recognition";
homepage = https://github.com/thumbor/remotecv/wiki;
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}