depot/third_party/nixpkgs/pkgs/development/python-modules/mahotas/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

33 lines
890 B
Nix

{ buildPythonPackage, fetchFromGitHub, nose, pillow, scipy, numpy, imread, lib, stdenv }:
buildPythonPackage rec {
pname = "mahotas";
version = "1.4.10";
src = fetchFromGitHub {
owner = "luispedro";
repo = "mahotas";
rev = "v${version}";
sha256 = "0fjiyl82wj1a6xzr9mss2y2rydl4zchl2cbdbg0jm0fcrs99q4hw";
};
# 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 lib; {
description = "Computer vision package based on numpy";
homepage = "https://mahotas.readthedocs.io/";
maintainers = with maintainers; [ luispedro ];
license = licenses.mit;
platforms = platforms.unix;
};
}