11 buildPythonPackage rec {
24 src = fetchFromGitHub {
28 hash = "sha256-uuLUGRNLCR3NS9g6OPCI+qG7tPWsLhI3OE5WmSI3vm8=";
32 substituteInPlace pkgconfig/pkgconfig.py \
33 --replace "pkg_config_exe = os.environ.get('PKG_CONFIG', None) or 'pkg-config'" "pkg_config_exe = '${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config'"
35 # those pc files are missing and pkg-config validates that they exist
36 substituteInPlace data/fake-openssl.pc \
37 --replace "Requires: libssl libcrypto" ""
40 nativeBuildInputs = [ poetry-core ];
42 # ModuleNotFoundError: No module named 'distutils'
43 # https://github.com/matze/pkgconfig/issues/64
44 doCheck = pythonOlder "3.12";
46 nativeCheckInputs = [ pytestCheckHook ];
48 pythonImportsCheck = [ "pkgconfig" ];
51 description = "Interface Python with pkg-config";
52 homepage = "https://github.com/matze/pkgconfig";
53 license = licenses.mit;
54 maintainers = with maintainers; [ nickcao ];