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