mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
33 lines
665 B
Nix
33 lines
665 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pygame
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrect";
|
|
version = "0.2.0";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyRect";
|
|
inherit version;
|
|
sha256 = "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 ];
|
|
};
|
|
}
|