summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyrect/default.nix
blob: a5503cfd2215081a240aa4ca0b36b68ba36a1f8f (plain)
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
{
  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
  ];

  pythonImportsCheck = [ "pyrect" ];

  meta = {
    description = "Simple module with a Rect class for Pygame-like rectangular areas";
    homepage = "https://github.com/asweigart/pyrect";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ lucasew ];
  };
}