blob: 0ca9dbdd8d2763ca48a1048fc054a9f590edfeda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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";
tag = 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
];
};
}
|