Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, buildPythonPackage, python, isPyPy, pythonAtLeast, sip-module ? "sip" }: 2 3buildPythonPackage rec { 4 pname = sip-module; 5 version = "4.19.25"; 6 format = "other"; 7 8 disabled = isPyPy || pythonAtLeast "3.11"; 9 10 src = fetchurl { 11 url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz"; 12 sha256 = "04a23cgsnx150xq86w1z44b6vr2zyazysy9mqax0fy346zlr77dk"; 13 }; 14 15 configurePhase = '' 16 ${python.executable} ./configure.py \ 17 --sip-module ${sip-module} \ 18 -d $out/${python.sitePackages} \ 19 -b $out/bin -e $out/include 20 ''; 21 22 enableParallelBuilding = true; 23 24 pythonImportsCheck = [ sip-module "sipconfig" ]; 25 26 doCheck = true; 27 28 meta = with lib; { 29 description = "Creates C++ bindings for Python modules"; 30 homepage = "https://riverbankcomputing.com/"; 31 license = licenses.gpl2Plus; 32 maintainers = with maintainers; [ lovek323 sander ]; 33 platforms = platforms.all; 34 }; 35}