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