blob: 05f13e8878a30f1922522627c0c85665e7174c2c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib, buildPythonPackage, fetchPypi, nose, pkgconfig }:
buildPythonPackage rec {
pname = "pkgconfig";
version = "1.5.1";
inherit (pkgconfig)
setupHooks
wrapperName
suffixSalt
targetPrefix
baseBinName
;
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/${pkgconfig.targetPrefix}pkg-config"'
'';
meta = with lib; {
description = "Interface Python with pkg-config";
homepage = "https://github.com/matze/pkgconfig";
license = licenses.mit;
};
}
|