python312Packages.vulkan: init at 1.3.275.1

This commit is contained in:
Grimmauld 2024-11-15 16:42:36 +01:00
parent db3e4d88ab
commit 73db838c15
No known key found for this signature in database
GPG Key ID: C2946668769F91FB
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,63 @@
{
buildPythonPackage,
cffi,
fetchFromGitHub,
inflection,
jinja2,
lib,
pysdl2,
setuptools,
vulkan-loader,
wheel,
xmltodict,
}:
buildPythonPackage rec {
pname = "vulkan";
version = "1.3.275.1";
pyproject = true;
src = fetchFromGitHub {
owner = "realitix";
repo = "vulkan";
rev = "refs/tags/${version}";
hash = "sha256-b1jHNKdHF7pIC6H4O2yxy36Ppb60J0uN2P0WaCw51Gc=";
};
postPatch = ''
substituteInPlace vulkan/_vulkan.py \
--replace-fail 'lib = ffi.dlopen(name)' 'lib = ffi.dlopen("${vulkan-loader}/lib/" + name)'
'';
buildInputs = [
vulkan-loader
];
build-system = [
setuptools
wheel
];
dependencies = [
inflection
jinja2
pysdl2
xmltodict
cffi
];
pythonImportsCheck = [
"vulkan"
];
meta = {
description = "Ultimate Python binding for Vulkan API";
homepage = "https://github.com/realitix/vulkan";
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
grimmauld
getchoo
];
};
}

View File

@ -17549,6 +17549,8 @@ self: super: with self; {
vulcan-api = callPackage ../development/python-modules/vulcan-api { };
vulkan = callPackage ../development/python-modules/vulkan { };
vultr = callPackage ../development/python-modules/vultr { };
vulture = callPackage ../development/python-modules/vulture { };