mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 19:24:20 +00:00
python310Packages.glfw: disable on unsupported Python releases
- add format
This commit is contained in:
parent
5c4812d6f6
commit
54dc719421
@ -1,8 +1,16 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, glfw3 }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, glfw3
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "glfw";
|
||||
version = "2.5.7";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FlorianRhiem";
|
||||
@ -13,10 +21,14 @@ buildPythonPackage rec {
|
||||
|
||||
# Patch path to GLFW shared object
|
||||
patches = [ ./search-path.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace glfw/library.py --replace "@GLFW@" '${glfw3}/lib'
|
||||
'';
|
||||
propagatedBuildInputs = [ glfw3 ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
glfw3
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
|
Loading…
Reference in New Issue
Block a user