depot/third_party/nixpkgs/pkgs/development/python-modules/pyrect/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

29 lines
650 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, tox
, pytestCheckHook
, pygame
}:
buildPythonPackage rec {
pname = "PyRect";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-9lFV9t+bkptnyv+9V8CUfFrlRJ07WA0XgHS/+0egm3g=";
};
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 ];
};
}