nixpkgs/pkgs/development/python-modules/showit/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

41 lines
724 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, matplotlib
, pytest
}:
buildPythonPackage rec {
pname = "showit";
version = "1.1.4";
format = "setuptools";
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 = [ ];
};
}