mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
0afae5c14b
Related issue: #60004 Previous PR: #73478
34 lines
889 B
Nix
34 lines
889 B
Nix
{ buildPythonPackage, fetchFromGitHub, nose, pillow, scipy, numpy, imread, stdenv }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mahotas";
|
|
version = "1.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "luispedro";
|
|
repo = "mahotas";
|
|
rev = "v${version}";
|
|
sha256 = "1a3nzxb7is8n7lpxwq1fw3fr03qflig334rb1zzr2znjrhq6g94b";
|
|
};
|
|
|
|
# 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 = https://mahotas.readthedocs.io/;
|
|
maintainers = with maintainers; [ luispedro ];
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|