1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 matplotlib,
7 pytest,
8}:
9
10buildPythonPackage {
11 pname = "showit";
12 version = "1.1.4";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "freeman-lab";
17 repo = "showit";
18 rev = "ef76425797c71fbe3795b4302c49ab5be6b0bacb"; # no tags in repo
19 sha256 = "0xd8isrlwwxlgji90lly1sq4l2a37rqvhsmyhv7bd3aj1dyjmdr6";
20 };
21
22 propagatedBuildInputs = [
23 numpy
24 matplotlib
25 ];
26
27 nativeCheckInputs = [ pytest ];
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 = [ ];
38 };
39}