python3Packages.gbinder-python: 1.1.1 -> 1.1.2 (#418518)

This commit is contained in:
dotlambda
2025-06-21 02:55:36 -07:00
committed by GitHub
@@ -2,37 +2,42 @@
lib,
fetchFromGitHub,
buildPythonPackage,
cython_0,
cython,
pkg-config,
libgbinder,
setuptools,
}:
buildPythonPackage rec {
pname = "gbinder-python";
version = "1.1.1";
format = "setuptools";
version = "1.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "erfanoabdi";
repo = "gbinder-python";
rev = version;
sha256 = "1X9gAux9w/mCEVmE3Yqvvq3kU7hu4iAFaZWNZZZxt3E=";
tag = version;
hash = "sha256-up1EDuR05a7TlCErd2BXkp01oqi6hEskt7xVxsJqquM=";
};
build-system = [
cython
setuptools
];
buildInputs = [ libgbinder ];
nativeBuildInputs = [
cython_0
pkg-config
];
postPatch = ''
# Fix pkg-config name for cross-compilation
substituteInPlace setup.py --replace "pkg-config" "$PKG_CONFIG"
substituteInPlace setup.py \
--replace-fail "pkg-config" "$PKG_CONFIG" \
--replace-fail "USE_CYTHON = False" "USE_CYTHON = True"
'';
setupPyGlobalFlags = [ "--cython" ];
meta = {
description = "Python bindings for libgbinder";
homepage = "https://github.com/erfanoabdi/gbinder-python";