2018-04-26 15:36:35 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, nose, pkgconfig }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pkgconfig";
|
2019-10-24 07:47:42 +01:00
|
|
|
version = "1.5.1";
|
2018-04-26 15:36:35 +01:00
|
|
|
|
2020-05-29 19:41:49 +01:00
|
|
|
inherit (pkgconfig)
|
|
|
|
setupHooks
|
|
|
|
wrapperName
|
|
|
|
suffixSalt
|
|
|
|
targetPrefix
|
|
|
|
baseBinName
|
|
|
|
;
|
2019-02-12 19:17:05 +00:00
|
|
|
|
2018-04-26 15:36:35 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:42 +01:00
|
|
|
sha256 = "97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f";
|
2018-04-26 15:36:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
2019-01-05 10:43:12 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-04-26 15:36:35 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2019-01-05 10:43:12 +00:00
|
|
|
patches = [ ./executable.patch ];
|
|
|
|
postPatch = ''
|
2020-04-28 04:56:25 +01:00
|
|
|
substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkgconfig}/bin/${pkgconfig.targetPrefix}pkg-config"'
|
2019-01-05 10:43:12 +00:00
|
|
|
'';
|
|
|
|
|
2018-04-26 15:36:35 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Interface Python with pkg-config";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/matze/pkgconfig";
|
2018-04-26 15:36:35 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|