Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 cython,
6 pkg-config,
7 libgbinder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "gbinder-python";
13 version = "1.3.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "waydroid";
18 repo = "gbinder-python";
19 tag = version;
20 hash = "sha256-z0hMAvwB+uttPcP+in+C3o1ujhFSiDXKktOajnsXhPI=";
21 };
22
23 build-system = [
24 cython
25 setuptools
26 ];
27
28 buildInputs = [ libgbinder ];
29
30 nativeBuildInputs = [
31 pkg-config
32 ];
33
34 postPatch = ''
35 # Fix pkg-config name for cross-compilation
36 substituteInPlace setup.py \
37 --replace-fail "pkg-config" "$PKG_CONFIG"
38 '';
39
40 meta = {
41 description = "Python bindings for libgbinder";
42 homepage = "https://github.com/waydroid/gbinder-python";
43 license = lib.licenses.gpl3Plus;
44 platforms = lib.platforms.linux;
45 maintainers = [ ];
46 };
47}