2018-09-08 16:08:52 +02:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, nose, pillow, scipy, numpy, imread, stdenv }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mahotas";
|
2018-10-24 10:12:16 +02:00
|
|
|
version = "1.4.5";
|
2018-09-08 16:08:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "luispedro";
|
|
|
|
repo = "mahotas";
|
|
|
|
rev = "v${version}";
|
2018-10-24 10:12:16 +02:00
|
|
|
sha256 = "0dm34751w1441lxq00219fqlqix5qrgc18wp1wgp7xivlz3czzcz";
|
2018-09-08 16:08:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# remove this as soon as https://github.com/luispedro/mahotas/issues/97 is fixed
|
|
|
|
patches = [ ./disable-impure-tests.patch ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy imread pillow scipy ];
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase= ''
|
|
|
|
python setup.py test
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabled = stdenv.isi686; # Failing tests
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Computer vision package based on numpy";
|
|
|
|
homepage = http://mahotas.readthedocs.io/;
|
|
|
|
maintainers = with maintainers; [ luispedro ];
|
|
|
|
license = licenses.mit;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = platforms.unix;
|
2018-09-08 16:08:52 +02:00
|
|
|
};
|
|
|
|
}
|