From 11db3d404a4e4fb426f24dff6fc88af5333d405c Mon Sep 17 00:00:00 2001 From: lucasew Date: Sat, 4 Dec 2021 07:33:43 -0300 Subject: [PATCH] pyrect: init at 0.1.4 Signed-off-by: lucasew --- .../python-modules/pyrect/default.nix | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/pyrect/default.nix diff --git a/pkgs/development/python-modules/pyrect/default.nix b/pkgs/development/python-modules/pyrect/default.nix new file mode 100644 index 000000000000..e8041786b07b --- /dev/null +++ b/pkgs/development/python-modules/pyrect/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, tox +, pytestCheckHook +, pygame +}: +buildPythonPackage rec { + pname = "PyRect"; + version = "0.1.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-Oy+nNTzjKhGqawoVSVlo0qdjQjyJR64ki5LAN9704gI="; + }; + + checkInputs = [ tox pytestCheckHook pygame ]; + pythonImportsCheck = [ "pyrect" ]; + preCheck = '' + export LC_ALL="en_US.UTF-8" + ''; + + 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 ]; + }; +}