2021-01-11 08:54:33 +01:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, nose, pillow, scipy, numpy, imread, lib, stdenv }:
|
2018-09-08 16:08:52 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mahotas";
|
2020-07-06 11:30:51 +02:00
|
|
|
version = "1.4.10";
|
2018-09-08 16:08:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "luispedro";
|
|
|
|
repo = "mahotas";
|
|
|
|
rev = "v${version}";
|
2020-07-06 11:30:51 +02:00
|
|
|
sha256 = "0fjiyl82wj1a6xzr9mss2y2rydl4zchl2cbdbg0jm0fcrs99q4hw";
|
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
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-09-08 16:08:52 +02:00
|
|
|
description = "Computer vision package based on numpy";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://mahotas.readthedocs.io/";
|
2018-09-08 16:08:52 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|