1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, cython 5, pkg-config 6, libgbinder 7}: 8 9buildPythonPackage rec { 10 pname = "gbinder-python"; 11 version = "1.1.1"; 12 13 src = fetchFromGitHub { 14 owner = "erfanoabdi"; 15 repo = pname; 16 rev = version; 17 sha256 = "1X9gAux9w/mCEVmE3Yqvvq3kU7hu4iAFaZWNZZZxt3E="; 18 }; 19 20 buildInputs = [ 21 libgbinder 22 ]; 23 24 nativeBuildInputs = [ 25 cython 26 pkg-config 27 ]; 28 29 postPatch = '' 30 # Fix pkg-config name for cross-compilation 31 substituteInPlace setup.py --replace "pkg-config" "$PKG_CONFIG" 32 ''; 33 34 setupPyGlobalFlags = [ "--cython" ]; 35 36 meta = with lib; { 37 description = "Python bindings for libgbinder"; 38 homepage = "https://github.com/erfanoabdi/gbinder-python"; 39 license = licenses.gpl3; 40 maintainers = with maintainers; [ mcaju ]; 41 platforms = platforms.linux; 42 }; 43}