blob: 9ede6d2c28fa03907ae7852f0f74f1156a766813 (
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
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
cython,
pkg-config,
libgbinder,
setuptools,
}:
buildPythonPackage rec {
pname = "gbinder-python";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "waydroid";
repo = "gbinder-python";
tag = version;
hash = "sha256-z0hMAvwB+uttPcP+in+C3o1ujhFSiDXKktOajnsXhPI=";
};
build-system = [
cython
setuptools
];
buildInputs = [ libgbinder ];
nativeBuildInputs = [
pkg-config
];
postPatch = ''
# Fix pkg-config name for cross-compilation
substituteInPlace setup.py \
--replace-fail "pkg-config" "$PKG_CONFIG"
'';
meta = {
description = "Python bindings for libgbinder";
homepage = "https://github.com/waydroid/gbinder-python";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}
|