ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / glfw / default.nix
blobb28846860035d8b13da568657805f6cd1a4b476f
1 { lib, buildPythonPackage, fetchFromGitHub, glfw3 }:
3 buildPythonPackage rec {
4   pname = "glfw";
5   version = "2.5.5";
7   src = fetchFromGitHub {
8     owner = "FlorianRhiem";
9     repo = "pyGLFW";
10     rev = "refs/tags/v${version}";
11     sha256 = "sha256-puaKveByAEkgME81uePTMSglvMgyqornW1sNAbJXNuc=";
12   };
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 ];
21   # Project has no tests
22   doCheck = false;
23   pythonImportsCheck = [ "glfw" ];
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   };