depot/third_party/nixpkgs/pkgs/development/python-modules/pkgconfig/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
761 B
Nix

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