python3Packages.showit: migrate to pyproject (#537706)
This commit is contained in:
@@ -2,33 +2,36 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
numpy,
|
||||
matplotlib,
|
||||
pytest,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "showit";
|
||||
version = "1.1.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "freeman-lab";
|
||||
repo = "showit";
|
||||
rev = "ef76425797c71fbe3795b4302c49ab5be6b0bacb"; # no tags in repo
|
||||
sha256 = "0xd8isrlwwxlgji90lly1sq4l2a37rqvhsmyhv7bd3aj1dyjmdr6";
|
||||
hash = "sha256-JrcqfQtSjbbOhr5quHE+QwlKsA6eUpCifLRzTrOOqHU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
matplotlib
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytest ];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest test
|
||||
'';
|
||||
pythonImportsCheck = [ "showit" ];
|
||||
|
||||
meta = {
|
||||
description = "Simple and sensible display of images";
|
||||
|
||||
Reference in New Issue
Block a user