<commit_before>{ lib, stdenv, toPythonModule, cmake, orocos-kdl, python, sip }:

toPythonModule (stdenv.mkDerivation {
  pname = "pykdl";
  inherit (orocos-kdl) version src;

  sourceRoot = "source/python_orocos_kdl";

  nativeBuildInputs = [ cmake ];
  buildInputs = [ orocos-kdl ];
  propagatedBuildInputs = [ python sip ];

  meta = with lib; {
    description = "Kinematics and Dynamics Library (Python bindings)";
    homepage = "https://www.orocos.org/kdl.html";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ lopsided98 ];
    platforms = platforms.all;
  };
})
<commit_msg>pythonPackages.pykdl: fix build with latest SIP<commit_after>{ lib, stdenv, toPythonModule, fetchpatch, cmake, orocos-kdl, python, sip }:

toPythonModule (stdenv.mkDerivation {
  pname = "pykdl";
  inherit (orocos-kdl) version src;

  patches = [
    # Fix build with SIP 4.19.23+. Can be removed with version 1.5.
    # https://github.com/orocos/orocos_kinematics_dynamics/pull/270
    (fetchpatch {
      url = "https://github.com/orocos/orocos_kinematics_dynamics/commit/d8d087ad0e1c41f3489d1a255ebfa27b5695196b.patch";
      sha256 = "0qyskqxv4a982kidzzyh34xj2iiw791ipbbl29jg4qb4l21xwqlg";
      stripLen = 1;
    })
  ];

  sourceRoot = "source/python_orocos_kdl";

  nativeBuildInputs = [ cmake ];
  buildInputs = [ orocos-kdl ];
  propagatedBuildInputs = [ python sip ];

  meta = with lib; {
    description = "Kinematics and Dynamics Library (Python bindings)";
    homepage = "https://www.orocos.org/kdl.html";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ lopsided98 ];
    platforms = platforms.all;
  };
})

{'fraction_non_alphanumeric': 0.12091898428053205, 'fraction_numerical': 0.03869407496977025, 'mean_word_length': 3.8533724340175954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5929732', 'n_tokens_mistral': 659, 'n_tokens_neox': 612, 'n_words': 116}