python.pkgs.pkgconfig: hardcode path to pkg-config

This commit is contained in:
Frederik Rietdijk
2019-01-05 11:43:12 +01:00
committed by Frederik Rietdijk
parent c5d99308de
commit 05232abbbc
2 changed files with 44 additions and 1 deletions

View File

@@ -11,12 +11,17 @@ buildPythonPackage rec {
checkInputs = [ nose ];
propagatedBuildInputs = [ pkgconfig ];
nativeBuildInputs = [ pkgconfig ];
checkPhase = ''
nosetests
'';
patches = [ ./executable.patch ];
postPatch = ''
substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkgconfig}/bin/pkg-config"'
'';
meta = with lib; {
description = "Interface Python with pkg-config";
homepage = https://github.com/matze/pkgconfig;