diff --git a/pkgs/development/python-modules/showit/default.nix b/pkgs/development/python-modules/showit/default.nix index b62246952537..5d22ce607c53 100644 --- a/pkgs/development/python-modules/showit/default.nix +++ b/pkgs/development/python-modules/showit/default.nix @@ -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";