Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 856 B view raw
1{ lib, buildPythonPackage, fetchPypi, nose, pkgconfig }: 2 3buildPythonPackage rec { 4 pname = "pkgconfig"; 5 version = "1.5.1"; 6 7 inherit (pkgconfig) 8 setupHooks 9 wrapperName 10 suffixSalt 11 targetPrefix 12 baseBinName 13 ; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f"; 18 }; 19 20 checkInputs = [ nose ]; 21 22 nativeBuildInputs = [ pkgconfig ]; 23 24 checkPhase = '' 25 nosetests 26 ''; 27 28 patches = [ ./executable.patch ]; 29 postPatch = '' 30 substituteInPlace pkgconfig/pkgconfig.py --replace 'PKG_CONFIG_EXE = "pkg-config"' 'PKG_CONFIG_EXE = "${pkgconfig}/bin/${pkgconfig.targetPrefix}pkg-config"' 31 ''; 32 33 meta = with lib; { 34 description = "Interface Python with pkg-config"; 35 homepage = "https://github.com/matze/pkgconfig"; 36 license = licenses.mit; 37 }; 38}