depot/third_party/nixpkgs/pkgs/development/python-modules/image-match/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
903 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, scikitimage }:
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; {
homepage = "https://github.com/ascribe/image-match";
description = "Quickly search over billions of images";
license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ];
};
}