2018-04-26 15:36:35 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, nose, pkgconfig }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pkgconfig";
|
2018-08-25 06:48:06 +01:00
|
|
|
version = "1.4.0";
|
2018-04-26 15:36:35 +01:00
|
|
|
|
2019-02-12 19:17:05 +00:00
|
|
|
setupHook = pkgconfig.setupHook;
|
|
|
|
|
2018-04-26 15:36:35 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 06:48:06 +01:00
|
|
|
sha256 = "048c3b457da7b6f686b647ab10bf09e2250e4c50acfe6f215398a8b5e6fcdb52";
|
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 = ''
|
|
|
|
substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkgconfig}/bin/pkg-config"'
|
|
|
|
'';
|
|
|
|
|
2018-04-26 15:36:35 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Interface Python with pkg-config";
|
|
|
|
homepage = https://github.com/matze/pkgconfig;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|