1 { lib, fetchurl, fetchpatch, buildPythonPackage, python, isPyPy, pythonAtLeast, sip-module ? "sip" }:
3 buildPythonPackage rec {
11 url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz";
12 sha256 = "04a23cgsnx150xq86w1z44b6vr2zyazysy9mqax0fy346zlr77dk";
15 patches = lib.optionals (pythonAtLeast "3.11") [
17 name = "sip-4-python3-11.patch";
18 url = "https://aur.archlinux.org/cgit/aur.git/plain/python3-11.patch?h=sip4&id=67b5907227e68845cdfafcf050fedb89ed653585";
19 sha256 = "sha256-cmuz2y5+T8EM/h03G2oboSnnOwrUjVKt2TUQaC9YAdE=";
24 ${python.executable} ./configure.py \
25 --sip-module ${sip-module} \
26 -d $out/${python.sitePackages} \
27 -b $out/bin -e $out/include
30 enableParallelBuilding = true;
32 pythonImportsCheck = [ sip-module "sipconfig" ];
37 description = "Creates C++ bindings for Python modules";
38 homepage = "https://riverbankcomputing.com/";
39 license = licenses.gpl2Plus;
40 maintainers = with maintainers; [ lovek323 sander ];
41 platforms = platforms.all;