nixpkgs/pkgs/development/python-modules/pyrect/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

33 lines
688 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pygame
}:
buildPythonPackage rec {
pname = "pyrect";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
pname = "PyRect";
inherit version;
hash = "sha256-9lFV9t+bkptnyv+9V8CUfFrlRJ07WA0XgHS/+0egm3g=";
};
nativeCheckInputs = [ pytestCheckHook pygame ];
preCheck = ''
export LC_ALL="en_US.UTF-8"
'';
pythonImportsCheck = [ "pyrect" ];
meta = with lib; {
description = "Simple module with a Rect class for Pygame-like rectangular areas";
homepage = "https://github.com/asweigart/pyrect";
license = licenses.bsd3;
maintainers = with maintainers; [ lucasew ];
};
}