1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 23:24:35 +00:00
nixpkgs/pkgs/development/python-modules/remotecv/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchFromGitHub, pillow, pyres, nose
2018-10-27 14:17:05 +01:00
, preggy, numpy, yanc, nose-focus, mock, opencv }:
buildPythonPackage rec {
pname = "remotecv";
version = "2.2.2";
propagatedBuildInputs = [ pillow pyres ];
2018-10-27 14:17:05 +01:00
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 ];
};
}