python3Packages.gbinder-python: 1.1.1 -> 1.1.2

Diff: https://github.com/erfanoabdi/gbinder-python/compare/1.1.1...1.1.2

Changed files
+14 -9
pkgs
development
python-modules
gbinder-python
+14 -9
pkgs/development/python-modules/gbinder-python/default.nix
···
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";