Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 glfw3,
6}:
7
8buildPythonPackage rec {
9 pname = "glfw";
10 version = "2.10.0";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "FlorianRhiem";
15 repo = "pyGLFW";
16 tag = "v${version}";
17 hash = "sha256-jZdM/rvPseQUsRv8+P3To2VCrQUiDHqr6XuXEBW0otM=";
18 };
19
20 # Patch path to GLFW shared object
21 postPatch = ''
22 substituteInPlace glfw/library.py --replace "_get_library_search_paths()," "[ '${glfw3}/lib' ],"
23 '';
24
25 propagatedBuildInputs = [ glfw3 ];
26
27 # Project has no tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "glfw" ];
31
32 meta = {
33 description = "Python bindings for GLFW";
34 homepage = "https://github.com/FlorianRhiem/pyGLFW";
35 changelog = "https://github.com/FlorianRhiem/pyGLFW/blob/${src.tag}/CHANGELOG.md";
36 license = lib.licenses.mit;
37 maintainers = [ lib.maintainers.McSinyx ];
38 };
39}