nixpkgs/pkgs/development/python-modules/pkgconfig/default.nix

38 lines
861 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pkg-config }:
2018-04-26 15:36:35 +01:00
buildPythonPackage rec {
pname = "pkgconfig";
version = "1.5.2";
2018-04-26 15:36:35 +01:00
inherit (pkg-config)
setupHooks
wrapperName
suffixSalt
targetPrefix
baseBinName
;
2018-04-26 15:36:35 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "38d612488f0633755a2e7a8acab6c01d20d63dbc31af75e2a9ac98a6f638ca94";
2018-04-26 15:36:35 +01:00
};
propagatedNativeBuildInputs = [ pkg-config ];
2018-04-26 15:36:35 +01:00
doCheck = false;
2018-04-26 15:36:35 +01:00
patches = [ ./executable.patch ];
postPatch = ''
substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config"'
'';
pythonImportsCheck = [ "pkgconfig" ];
2018-04-26 15:36:35 +01:00
meta = with lib; {
description = "Interface Python with pkg-config";
homepage = "https://github.com/matze/pkgconfig";
2018-04-26 15:36:35 +01:00
license = licenses.mit;
};
}