at 23.05-pre 1.0 kB view raw
1{ lib, stdenv, fetchPypi, buildPythonPackage, packaging, ply, toml, fetchpatch }: 2 3buildPythonPackage rec { 4 pname = "sip"; 5 version = "6.7.4"; 6 7 src = fetchPypi { 8 pname = "sip"; 9 inherit version; 10 sha256 = "sha256-nb+KDnyNdtFkLi/dP1PmpSL3wwmA5Sd2PEV2DCUFz78="; 11 }; 12 13 propagatedBuildInputs = [ packaging ply toml ]; 14 15 # There aren't tests 16 doCheck = false; 17 18 # FIXME: Why isn't this detected automatically? 19 # Needs to be specified in pyproject.toml, e.g.: 20 # [tool.sip.bindings.MODULE] 21 # tags = [PLATFORM_TAG] 22 platform_tag = 23 if stdenv.targetPlatform.isLinux then 24 "WS_X11" 25 else if stdenv.targetPlatform.isDarwin then 26 "WS_MACX" 27 else if stdenv.targetPlatform.isWindows then 28 "WS_WIN" 29 else 30 throw "unsupported platform"; 31 32 pythonImportsCheck = [ "sipbuild" ]; 33 34 meta = with lib; { 35 description = "Creates C++ bindings for Python modules"; 36 homepage = "https://riverbankcomputing.com/"; 37 license = licenses.gpl3Only; 38 maintainers = with maintainers; [ nrdxp ]; 39 }; 40}