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 pythonImportsCheck = [ "pyrect" ];
26
27 meta = with lib; {
28 description = "Simple module with a Rect class for Pygame-like rectangular areas";
29 homepage = "https://github.com/asweigart/pyrect";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ lucasew ];
32 };
33}