2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, nose, pkgconfig }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pkgconfig";
|
|
|
|
version = "1.5.1";
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
inherit (pkgconfig)
|
|
|
|
setupHooks
|
|
|
|
wrapperName
|
|
|
|
suffixSalt
|
|
|
|
targetPrefix
|
|
|
|
baseBinName
|
|
|
|
;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./executable.patch ];
|
|
|
|
postPatch = ''
|
2020-06-18 07:06:33 +00:00
|
|
|
substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkgconfig}/bin/${pkgconfig.targetPrefix}pkg-config"'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Interface Python with pkg-config";
|
|
|
|
homepage = "https://github.com/matze/pkgconfig";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|