at 23.05-pre 792 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, glfw3 }: 2 3buildPythonPackage rec { 4 pname = "glfw"; 5 version = "2.5.5"; 6 7 src = fetchFromGitHub { 8 owner = "FlorianRhiem"; 9 repo = "pyGLFW"; 10 rev = "refs/tags/v${version}"; 11 sha256 = "sha256-puaKveByAEkgME81uePTMSglvMgyqornW1sNAbJXNuc="; 12 }; 13 14 # Patch path to GLFW shared object 15 patches = [ ./search-path.patch ]; 16 postPatch = '' 17 substituteInPlace glfw/library.py --replace "@GLFW@" '${glfw3}/lib' 18 ''; 19 propagatedBuildInputs = [ glfw3 ]; 20 21 # Project has no tests 22 doCheck = false; 23 pythonImportsCheck = [ "glfw" ]; 24 25 meta = with lib; { 26 description = "Python bindings for GLFW"; 27 homepage = "https://github.com/FlorianRhiem/pyGLFW"; 28 license = licenses.mit; 29 maintainers = [ maintainers.McSinyx ]; 30 }; 31}