1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pygame,
7}:
8
9buildPythonPackage rec {
10 pname = "pyrect";
11 version = "0.2.0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 pname = "PyRect";
16 inherit version;
17 hash = "sha256-9lFV9t+bkptnyv+9V8CUfFrlRJ07WA0XgHS/+0egm3g=";
18 };
19
20 nativeCheckInputs = [
21 pytestCheckHook
22 pygame
23 ];
24
25 preCheck = ''
26 export LC_ALL="en_US.UTF-8"
27 '';
28
29 pythonImportsCheck = [ "pyrect" ];
30
31 meta = with lib; {
32 description = "Simple module with a Rect class for Pygame-like rectangular areas";
33 homepage = "https://github.com/asweigart/pyrect";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ lucasew ];
36 };
37}