python311Packages.pygame-gui: harden, migrate to pyproject=true

This commit is contained in:
Peder Bergebakken Sundt
2024-05-02 00:02:38 +02:00
parent 16211e812e
commit 6bbf0a7e1f
@@ -2,6 +2,7 @@
, pkgs
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pygame-ce
, python-i18n
, pytestCheckHook
@@ -10,7 +11,7 @@
buildPythonPackage rec {
pname = "pygame-gui";
version = "0610";
format = "setuptools";
pyproject = true;
# nixpkgs-update: no auto update
src = fetchFromGitHub {
@@ -20,6 +21,10 @@ buildPythonPackage rec {
hash = "sha256-PVNi/I174AyEEjc+N2UGtgOYSGAgVQbqrKkWZnjOxFY=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pygame-ce
python-i18n
@@ -27,7 +32,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pygame_gui/core/utility.py \
--replace "xsel" "${pkgs.xsel}/bin/xsel"
--replace-fail "xsel" "${lib.getExe pkgs.xsel}"
'';
nativeCheckInputs = [ pytestCheckHook ];