diff options
author | Roger Qiu <roger.qiu@polyhack.io> | 2018-07-18 18:02:54 +1000 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-07-20 07:53:58 +0200 |
commit | 5fba38d65c895b3de627711533b68efcb1b83133 (patch) | |
tree | 74673473a6552c615af7799adbbbff1ce56213f7 /pkgs/development/python-modules/image-match | |
parent | 6ed3ea6e74d31ef8fe8f5983df0c4676a5a791ea (diff) | |
download | nixlib-5fba38d65c895b3de627711533b68efcb1b83133.tar nixlib-5fba38d65c895b3de627711533b68efcb1b83133.tar.gz nixlib-5fba38d65c895b3de627711533b68efcb1b83133.tar.bz2 nixlib-5fba38d65c895b3de627711533b68efcb1b83133.tar.lz nixlib-5fba38d65c895b3de627711533b68efcb1b83133.tar.xz nixlib-5fba38d65c895b3de627711533b68efcb1b83133.tar.zst nixlib-5fba38d65c895b3de627711533b68efcb1b83133.zip |
pythonPackages.image-match: init at 1.1.2
Diffstat (limited to 'pkgs/development/python-modules/image-match')
-rw-r--r-- | pkgs/development/python-modules/image-match/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/image-match/default.nix b/pkgs/development/python-modules/image-match/default.nix new file mode 100644 index 000000000000..25c3c901a4ef --- /dev/null +++ b/pkgs/development/python-modules/image-match/default.nix @@ -0,0 +1,34 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub, pytestrunner, dask, scikitimage, six }: + +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 ]; + }; +} |