01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
32 lines
659 B
Nix
32 lines
659 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pygame
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrect";
|
|
version = "0.2.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyRect";
|
|
inherit version;
|
|
sha256 = "sha256-9lFV9t+bkptnyv+9V8CUfFrlRJ07WA0XgHS/+0egm3g=";
|
|
};
|
|
|
|
checkInputs = [ 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 ];
|
|
};
|
|
}
|