2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2021-10-04 12:37:57 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, cython_0
|
2021-10-04 12:37:57 +00:00
|
|
|
, pkg-config
|
|
|
|
, libgbinder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gbinder-python";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "1.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "erfanoabdi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "1X9gAux9w/mCEVmE3Yqvvq3kU7hu4iAFaZWNZZZxt3E=";
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libgbinder
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
cython_0
|
2021-10-04 12:37:57 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Fix pkg-config name for cross-compilation
|
|
|
|
substituteInPlace setup.py --replace "pkg-config" "$PKG_CONFIG"
|
|
|
|
'';
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
setupPyGlobalFlags = [ "--cython" ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
meta = {
|
2021-10-04 12:37:57 +00:00
|
|
|
description = "Python bindings for libgbinder";
|
|
|
|
homepage = "https://github.com/erfanoabdi/gbinder-python";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ mcaju ];
|
2021-10-04 12:37:57 +00:00
|
|
|
};
|
|
|
|
}
|