1 { lib, buildPythonPackage, fetchFromGitHub, glfw3 }:
3 buildPythonPackage rec {
7 src = fetchFromGitHub {
8 owner = "FlorianRhiem";
10 rev = "refs/tags/v${version}";
11 sha256 = "sha256-puaKveByAEkgME81uePTMSglvMgyqornW1sNAbJXNuc=";
14 # Patch path to GLFW shared object
15 patches = [ ./search-path.patch ];
17 substituteInPlace glfw/library.py --replace "@GLFW@" '${glfw3}/lib'
19 propagatedBuildInputs = [ glfw3 ];
21 # Project has no tests
23 pythonImportsCheck = [ "glfw" ];
26 description = "Python bindings for GLFW";
27 homepage = "https://github.com/FlorianRhiem/pyGLFW";
28 license = licenses.mit;
29 maintainers = [ maintainers.McSinyx ];