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

33 lines
759 B
Nix
Raw Normal View History

2018-04-26 14:36:35 +00:00
{ lib, buildPythonPackage, fetchPypi, nose, pkgconfig }:
buildPythonPackage rec {
pname = "pkgconfig";
2019-10-24 06:47:42 +00:00
version = "1.5.1";
2018-04-26 14:36:35 +00:00
setupHook = pkgconfig.setupHook;
2018-04-26 14:36:35 +00:00
src = fetchPypi {
inherit pname version;
2019-10-24 06:47:42 +00:00
sha256 = "97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f";
2018-04-26 14:36:35 +00:00
};
checkInputs = [ nose ];
nativeBuildInputs = [ pkgconfig ];
2018-04-26 14:36:35 +00:00
checkPhase = ''
nosetests
'';
patches = [ ./executable.patch ];
postPatch = ''
substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkgconfig}/bin/pkg-config"'
'';
2018-04-26 14:36:35 +00:00
meta = with lib; {
description = "Interface Python with pkg-config";
homepage = https://github.com/matze/pkgconfig;
license = licenses.mit;
};
}