2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, scikitimage }:
|
2018-07-18 09:02:54 +01:00
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "image-match";
|
|
|
|
version = "1.1.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ascribe";
|
|
|
|
repo = "image-match";
|
|
|
|
rev = "1c5f3170555540bdf43ff8b8189c4e8c13a8b950";
|
|
|
|
sha256 = "0vlmpidmhkpgdzw2k03x5layhijcrjpmyfd93yv2ls77ihz00ix5";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytestrunner ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
scikitimage
|
|
|
|
];
|
|
|
|
|
|
|
|
# remove elasticsearch requirement due to version incompatibility
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'elasticsearch>=5.0.0,<6.0.0'," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
# tests cannot work without elasticsearch
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ascribe/image-match";
|
2018-07-18 09:02:54 +01:00
|
|
|
description = "Quickly search over billions of images";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ cmcdragonkai ];
|
|
|
|
};
|
|
|
|
}
|