1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy27
5, numpy
6, matplotlib
7, pytest
8}:
9
10buildPythonPackage rec {
11 pname = "showit";
12 version = "1.1.4";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "freeman-lab";
17 repo = pname;
18 rev = "ef76425797c71fbe3795b4302c49ab5be6b0bacb"; # no tags in repo
19 sha256 = "0xd8isrlwwxlgji90lly1sq4l2a37rqvhsmyhv7bd3aj1dyjmdr6";
20 };
21
22 propagatedBuildInputs = [
23 numpy
24 matplotlib
25 ];
26
27 checkInputs = [
28 pytest
29 ];
30
31 checkPhase = ''
32 pytest test
33 '';
34
35 meta = with lib; {
36 description = "simple and sensible display of images";
37 homepage = "https://github.com/freeman-lab/showit";
38 license = licenses.mit;
39 maintainers = [ maintainers.costrouc ];
40 };
41}