504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
33 lines
688 B
Nix
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 ];
|
|
};
|
|
}
|