about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyrect/default.nix
blob: 3b673068adaaa6b0a3d0da3287edb7b8f48e9ad1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  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 ];
  };
}