depot/third_party/nixpkgs/pkgs/development/python-modules/showit/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

39 lines
720 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, matplotlib
, pytest
}:
buildPythonPackage rec {
pname = "showit";
version = "1.1.4";
src = fetchFromGitHub {
owner = "freeman-lab";
repo = pname;
rev = "ef76425797c71fbe3795b4302c49ab5be6b0bacb"; # no tags in repo
sha256 = "0xd8isrlwwxlgji90lly1sq4l2a37rqvhsmyhv7bd3aj1dyjmdr6";
};
propagatedBuildInputs = [
numpy
matplotlib
];
nativeCheckInputs = [
pytest
];
checkPhase = ''
pytest test
'';
meta = with lib; {
description = "simple and sensible display of images";
homepage = "https://github.com/freeman-lab/showit";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}