adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

45 lines
869 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, cython
, pkg-config
, libgbinder
}:
buildPythonPackage rec {
pname = "gbinder-python";
version = "1.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "erfanoabdi";
repo = pname;
rev = version;
sha256 = "1X9gAux9w/mCEVmE3Yqvvq3kU7hu4iAFaZWNZZZxt3E=";
};
buildInputs = [
libgbinder
];
nativeBuildInputs = [
cython
pkg-config
];
postPatch = ''
# Fix pkg-config name for cross-compilation
substituteInPlace setup.py --replace "pkg-config" "$PKG_CONFIG"
'';
setupPyGlobalFlags = [ "--cython" ];
meta = {
description = "Python bindings for libgbinder";
homepage = "https://github.com/erfanoabdi/gbinder-python";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ mcaju ];
};
}