depot/third_party/nixpkgs/pkgs/development/python-modules/pyrect/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
705 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 ];
};
}