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