Skip to content

Commit

Permalink
pythonPackages.image-match: init at 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai authored and FRidh committed Jul 20, 2018
1 parent 6ed3ea6 commit 5fba38d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/image-match/default.nix
@@ -0,0 +1,34 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, dask, scikitimage, six }:

This comment has been minimized.

Copy link
@CMCDragonkai

CMCDragonkai Jul 22, 2018

Author Member

@FRidh The dask is no longer required in this expression.


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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -3131,6 +3131,8 @@ in {

};

image-match = callPackage ../development/python-modules/image-match { };

imbalanced-learn = callPackage ../development/python-modules/imbalanced-learn { };

immutables = callPackage ../development/python-modules/immutables {};
Expand Down

0 comments on commit 5fba38d

Please sign in to comment.