Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 33 lines 888 B view raw
1{ buildPythonPackage, fetchFromGitHub, nose, pillow, scipy, numpy, imread, stdenv }: 2 3buildPythonPackage rec { 4 pname = "mahotas"; 5 version = "1.4.5"; 6 7 src = fetchFromGitHub { 8 owner = "luispedro"; 9 repo = "mahotas"; 10 rev = "v${version}"; 11 sha256 = "0dm34751w1441lxq00219fqlqix5qrgc18wp1wgp7xivlz3czzcz"; 12 }; 13 14 # remove this as soon as https://github.com/luispedro/mahotas/issues/97 is fixed 15 patches = [ ./disable-impure-tests.patch ]; 16 17 propagatedBuildInputs = [ numpy imread pillow scipy ]; 18 checkInputs = [ nose ]; 19 20 checkPhase= '' 21 python setup.py test 22 ''; 23 24 disabled = stdenv.isi686; # Failing tests 25 26 meta = with stdenv.lib; { 27 description = "Computer vision package based on numpy"; 28 homepage = http://mahotas.readthedocs.io/; 29 maintainers = with maintainers; [ luispedro ]; 30 license = licenses.mit; 31 platforms = platforms.unix; 32 }; 33}