2020-12-31 16:27:58 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pkg-config }:
|
2018-04-26 07:36:35 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pkgconfig";
|
2021-02-20 01:09:12 -08:00
|
|
|
version = "1.5.2";
|
2018-04-26 07:36:35 -07:00
|
|
|
|
2020-12-31 16:27:58 -08:00
|
|
|
inherit (pkg-config)
|
2020-05-29 11:41:49 -07:00
|
|
|
setupHooks
|
|
|
|
wrapperName
|
|
|
|
suffixSalt
|
|
|
|
targetPrefix
|
|
|
|
baseBinName
|
|
|
|
;
|
2019-02-12 11:17:05 -08:00
|
|
|
|
2018-04-26 07:36:35 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 01:09:12 -08:00
|
|
|
sha256 = "38d612488f0633755a2e7a8acab6c01d20d63dbc31af75e2a9ac98a6f638ca94";
|
2018-04-26 07:36:35 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-12-31 16:27:58 -08:00
|
|
|
propagatedNativeBuildInputs = [ pkg-config ];
|
2018-04-26 07:36:35 -07:00
|
|
|
|
2020-12-31 16:27:58 -08:00
|
|
|
doCheck = false;
|
2018-04-26 07:36:35 -07:00
|
|
|
|
2019-01-05 02:43:12 -08:00
|
|
|
patches = [ ./executable.patch ];
|
|
|
|
postPatch = ''
|
2020-12-31 16:27:58 -08:00
|
|
|
substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config"'
|
2019-01-05 02:43:12 -08:00
|
|
|
'';
|
|
|
|
|
2020-12-31 16:27:58 -08:00
|
|
|
pythonImportsCheck = [ "pkgconfig" ];
|
|
|
|
|
2018-04-26 07:36:35 -07:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Interface Python with pkg-config";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/matze/pkgconfig";
|
2018-04-26 07:36:35 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|