2021-07-24 12:14:16 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest-runner, scikitimage }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "image-match";
|
|
|
|
version = "1.1.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ascribe";
|
|
|
|
repo = "image-match";
|
|
|
|
rev = "1c5f3170555540bdf43ff8b8189c4e8c13a8b950";
|
|
|
|
sha256 = "0vlmpidmhkpgdzw2k03x5layhijcrjpmyfd93yv2ls77ihz00ix5";
|
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
buildInputs = [ pytest-runner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
2021-02-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "image_match" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ascribe/image-match";
|
|
|
|
description = "Quickly search over billions of images";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ cmcdragonkai ];
|
|
|
|
};
|
|
|
|
}
|